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:   List comprehension in ruby too...
Date:   2007-05-24 08:11:27
From:   pmccann
Response to: List comprehension in python

The ruby's also a little funked: maybe something like...


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


1 to 3 of 3
1 to 3 of 3