/ Published in: Groovy
Clojsure composition in Groovy (functional style programing). @http://www.ibm.com/developerworks/java/library/j-pg08235/index.html
Expand |
Embed | Plain Text
// closure // triple = { y -> return 3 * y } // quadruple = { y -> return 4 * y } println "threeDozen: ${threeDozen}" // threeDozen: 36
You need to login to post a comment.
