Practically Groovy, Functional programming with curried closures
Groovy's everyday coding construct goes where no closure has gone before
From the developerWorks archives
Date archived: April 19, 2017 | First published: August 23, 2005
Closures are everywhere in Groovy, and the only problem with Groovy closures is that they can start to seem, well, kind of bland when you use them every day. This month, guest authors Ken Barclay and John Savage show you how to spice up standard closures recipes like closure composition and the Visitor design pattern with just a hint of curry. The
curry() method was invented by Haskell Curry and has been in the Groovy language since before the JSR-compliant releases.
This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.