RosettaCodeData/Task/Higher-order-functions/Groovy/higher-order-functions-2.groovy

5 lines
82 B
Groovy
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
def first(func) { func() }
def second() { println "second" }
first(this.&second)