>>
>>
>
> Oops. My code has a bug.
>
> arr = %w[a b c d b f g h i j k l m]
>
> p arr.select{|x| arr.index(x) % 2 == 0}#> ["a", "c", "g", "i", "k", "m"]
>
> res = []
> (0...arr.length).step(2) {|x| res << arr[x]}
> p res #> ["a", "c", "b", "g", "i", "k", "m"]
>
> Harry
>
>
Or not. :)
Which do you want?

Harry

-- 
A Look into Japanese Ruby List in English
http://www.kakueki.com/ruby/list.html