From: Phlip Date: 2002-09-01T23:18:18+09:00 Subject: Re: Ruby aesthetics >> Ruby: squares_less_than_10 = numbers.find_all{|i| i<10}.map{|i| i^2} > I like list comprehensions (they're somewhat Haskell-ish), but, as many of > my pythonesque friends have stated, "they're not very true to python's > syntax." And, in this form, perhaps a little ugly. But I suspect someone could bottle that cranky syntax up into a function called "comprehend" taking a list and a lambda, no? -- Phlip http://www.greencheese.org/EvolutionaryPsychology -- The first few lines of code must "hook" the computer, and make it "care" about the program --