From: dblack@... Date: 2006-12-14T07:40:02+09:00 Subject: Re: map taking an argument (was: Re: join_with) Hi -- On Thu, 14 Dec 2006, James Edward Gray II wrote: > On Dec 13, 2006, at 3:56 PM, 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) ? > > Does the version currently in Ruby 1.9 support arguments? I don't think so. I'm actually not sure where they'd go, since &:meth is the block and not an argument. 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)