From: Austin Ziegler Date: 2002-11-27T23:11:15+09:00 Subject: Re: list comprehension and default argument name On Wed, 27 Nov 2002 13:49:36 +0900, Bulat Ziganshin wrote: > 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 FP? -austin -- Austin Ziegler, austin@halostatue.ca on 2002.11.27 at 09.10.28