>>>>> "G" == Gavin Sinclair <gsinclair / soyabean.com.au> 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