From: dblack@... Date: 2006-12-14T07:38:19+09:00 Subject: Re: map taking an argument (was: Re: join_with) Hi -- On Thu, 14 Dec 2006, Christian Neukirchen wrote: > "Martin DeMello" writes: > >>> (1..10).map &lambda {|i| i*2} >> => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] > > David, do you want to allow (1..10).map(:*, 2) ? I don't particularly want to allow map(:anything) :-) I was just somewhat surprised to see the idea return in a slightly new form, since Matz had rejected it a while ago. If I were designing map(:name), I don't think I'd want it to take arguments. But I have no technical grounds for saying so, only aesthetic ones. David -- Q. What's a good holiday present for the serious Rails developer? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) aka The Ruby book for Rails developers! Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)