From: "Brian Schröder" Date: 2005-07-28T23:16:20+09:00 Subject: Re: Idea for Ruby 2.0 On 28/07/05, Trans 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/