From: Alder Green Date: 2006-05-12T01:35:21+09:00 Subject: Re: each with arguments On 5/11/06, Robert Klemme wrote: > You can as well use direct assignment, say if you want just every > third element you can do: > > 17:32:15 [~]: ruby -r enumerator -e '(1..10).each_slice(3) {|a,| p a}' > 1 > 4 > 7 > 10 > > Kind regards > > robert > > cool, didn't know about that one! -Alder