Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Idea for Ruby 2.0" > on Thu, 28 Jul 2005 19:03:43 +0900, Nikolai Weibull <mailing-lists.ruby-talk / rawuncut.elitemail.org> writes: > > |Lately I've found myself using pseudo-anonymous variables a lot, e.g., > |something like this: > | > |[[1, 2], [2, 3], [3, 4]].each{ |first, _| fs << first } > | > |The idea is that I'm not interested in the second part of the internal > |arrays, only the first. > > How about > > [[1, 2], [2, 3], [3, 4]].each{ |first, *| fs << first } > > that works _now_? > > matz. Hello, What about [[1, 2, 3], [2, 3, 4], [3, 4, 5]].each{ |first, *, last| fs << first, last } ? It does not work (and should not, as now). The idea was to skip some part of incoming data. BTW is there any way to skip a parameter when a method is called wich has default parameters, like: def aMethod( a = 1, b = 2) #some stuff end aMethod( _, 4)# I do not want to change first parameter value and do not know its default one. BR, Pavel