RosettaCodeData/Task/Higher-order-functions/CoffeeScript/higher-order-functions-2.coffee

4 lines
63 B
CoffeeScript
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
fn = -> return 8
sum = (a, b) -> a() + b()
sum(fn, fn) # => 16