ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  An Introduction to Haskell, Part 1: Why Haskell
Subject:   and the Groovy version is...
Date:   2007-05-26 02:50:29
From:   Mittie

even = { it % 2 == 0}
(1..10).grep even


Groovy is also one of the languages that have learned from Haskell, honoring Mr. Haskell Brooks Curry with the curry() method on closures (see Groovy in Action, page 138).


Dierk König
http://groovy.canoo.com/gina