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

6 lines
120 B
CoffeeScript
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
double = (x) -> x*2
triple = (x) -> x*3
addOne = (x) -> x+1
addOne triple double 2 # same as addOne(triple(double(2)))