RosettaCodeData/Task/Higher-order-functions/CoffeeScript/higher-order-functions-6.co...

5 lines
52 B
CoffeeScript

((x)->
2 + x(-> 5)
)((y) -> y()+3)
# result: 10