From: Avi Bryant Date: 2001-10-11T09:09:55+09:00 Subject: [ruby-talk:22414] Re: list comprehensions alike Python ??? On Wed, 10 Oct 2001, Avi Bryant wrote: > sure: > arr = (0..10).collect{|x| x*x}.select{|x| x.even?} Oops... I was assuming the existence of even?. Oh, well. x %2 == 0 then.