From: Arlen Cuss Date: 2008-02-21T23:45:50+09:00 Subject: Re: What does *args do? ------=_Part_3464_23050986.1203605154164 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, On Fri, Feb 22, 2008 at 1:34 AM, Mark Bush wrote: > You can even do multiple assignment this way: > b, c, d, e = *a > b # => 1 > c # => 2 > d # => 3 > e # => 4 > It's worth noting that this behaviour can be achieved without the splat operator: >> b, c, d, e = a # => [1, 2, 3, 4] >> b # => 1 >> c # => 2 >> d # => 3 >> e # => 4 Arlen ------=_Part_3464_23050986.1203605154164--