From: Bulat Ziganshin Date: 2002-11-27T13:49:36+09:00 Subject: Re: list comprehension and default argument name Hello Austin, Monday, November 25, 2002, 8:00:10 PM, you wrote: >> 1. list comprehension >> { |x<-0...n| x*2 } >> { |n, x<-0...n, y<-0..x| [x,y] } >> map {_*2} list # same as map {|x| x*2} list >> map {_.lc} list # same as map {|x| x.lc} list >> def x2 => _*2 # def x2(x); x*2; end only reason of my suggestions is compactness of FP-style code -- Best regards, Bulat mailto:bulatz@integ.ru