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


AddThis Social Bookmark Button
  An Introduction to Haskell, Part 1: Why Haskell
Subject:   Slightly simplier Ruby example
Date:   2007-05-29 17:04:16
From:   eydaimon
Response to: Slightly simplier Ruby example

(1..10).select { |i| i % 2 == 0 }

also works. I've only dabbled in OCaml which also has currying. It's also more modern with OOP, but it has side-effects which from what I understand, Haskell does not have.