Link Details

Link 61502 thumbnail
User 111696 avatar

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.
  • 19
  • 0
  • 1679
  • 265

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.