RosettaCodeData/Task/Higher-order-functions/Groovy/higher-order-functions-1.groovy
2023-07-01 13:44:08 -04:00

4 lines
72 B
Groovy

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