RosettaCodeData/Task/Higher-order-functions/Groovy/higher-order-functions-1.groovy
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

4 lines
72 B
Groovy

first = { func -> func() }
second = { println "second" }
first(second)