Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Martin Fowler wrote an article in his Bliki on Closures. He uses Ruby as demonstration language for closures. On this page (nearly) the same example is nearly written in Groovy:

Code Block
def managers(emps) {
	emps.findAll { e -> e.isManager() }
}

...