From: Michael Neumann Date: 2001-10-11T23:58:28+09:00 Subject: [ruby-talk:22435] Re: list comprehensions alike Python ??? Pixel wrote: > Luigi Ballabio writes: > > [...] > > > How about > > >>> l = [(x,y) for x in range(1,5) for y in range(1,5) if x+y < 5] > > >>> l > > [(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (3, 1)] > > haskell could be Haskell even has infinite or circular data-structures. It's a great language (I love it), but compared to Ruby (and other imperative languages) it's hard to learn and understand, because it's pure functional. Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de