From: ts Date: 2002-08-04T23:37:28+09:00 Subject: Re: Should this work? >>>>> "G" == Gavin Sinclair writes: G> In Ruby, since :map/:collect most commonly takes only one parameter in the G> block, it could be unambiguously shortcut using a magic local variable. #collect is a method of Enumerable and call #each, for example pigeon% ruby -e 'a = {1 => 2}; a.collect {|x, y| p x, y}' 1 2 pigeon% Apparently you want a "magic" local variable for the block do ... end and not for #collect Guy Decoux