RosettaCodeData/Task/First-class-functions/Groovy/first-class-functions-1.groovy
2023-07-01 13:44:08 -04:00

1 line
43 B
Groovy

def compose = { f, g -> { x -> f(g(x)) } }