Higher-order function: Difference between revisions

Content deleted Content added
DarthKitty (talk | contribs)
Scheme: extract `g`, to align with other examples; print the results
DarthKitty (talk | contribs)
Line 255:
end
 
plus_three = fn(i) -> 3i + i3 end
 
g = Hof.twice(plus_three)
Line 269:
end
 
plus_three = fn(i) -> 3i + i3 end
 
g = twice.(plus_three)