By bloid
via hamletdarcy.blogspot.com
Published: Jan 15 2008 / 01:09
I don't find the concept of currying a function that difficult. Of course, when something sounds easy to me it usually means I don't really understand it. The Wikipedia entry makes it sound complex, with all that mathematical notation, but the Groovy examples weren't all that hard to grasp. The question that I've been thinking about is, "Why would you use the curry() method to bind an argument instead of just binding it within another closure?" I'll try to answer this question shortly... but first let's review how curry() and wrapping things in closures are similar.
Add your comment
Voters For This Link (19)
-
bloid -
aalmiray -
johannz -
tonetheman -
amrlafi -
glaforge -
bscarr -
mkuhl.pip.verisignlabs.com -
mikestephen -
sdevijver -
p3t0r -
memelet -
sigzero -
pmularien -
mezmo -
HamletDRC -
harlan -
aliz -
boocockp