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:   Slightly simplier Ruby example
Date:   2007-05-29 09:23:10
From:   wiremine
The Ruby example can be simplified a bit using a Range object instead of an Array:


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


Nice article, btw.


1 to 1 of 1
1 to 1 of 1