
Blocks and variable parameter lists
B> Then 'a' is either a single value or an array, depending on whether it is
B> called with one or more than one value. Is there a syntax to make it always
B> be an array even if called with only one parameter? Or do I have to do
pigeon% ruby -e '1.times {|*a| p a}'
[0]
pigeon%
pigeon% ruby -e '{"a", "b"}.each {|*a| p a}'
["a", "b"]
pigeon%
Guy Decoux