On 28/07/05, Trans <transfire / gmail.com> wrote:
> Underscore works as it is, so { |a, _, c| ... } works.
> 
> T.


bschroed@black:~/svn/diplomarbeit/text$ irb
irb(main):001:0> def four_values() [1,2,3,4] end
=> nil
irb(main):002:0> a, _, b, _ = *four_values
=> [1, 2, 3, 4]

Ooops, everythings already there. I thought you could not assign in
parallel twice to the same variable. It seems it ain't really parallel
;)

regards,

Brian

-- 
http://ruby.brian-schroeder.de/

Stringed instrument chords: http://chordlist.brian-schroeder.de/