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. While we're picking apart the examples...
    2007-05-28 14:45:08  Yakshavers [View]

  2. List comprehension in ruby too...
    2007-05-26 03:23:29  paulk_asert [View]

  3. List comprehension in ruby too...
    2007-05-25 12:24:06  PaulBattley [View]

1 to 3 of 3