RosettaCodeData/Task/First-class-functions/Groovy/first-class-functions-1.groovy

2 lines
43 B
Groovy
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
def compose = { f, g -> { x -> f(g(x)) } }