On Fri, 2008-05-09 at 23:16 +0900, Tim Conner wrote: > What is the best way to delete every other value in a ruby array? > e.g. > %w(a b c d e f g h i j k) > > becomes => [a c e g i k] v = %w(a b c d e f g h i j k) cnt = 0 v.each { |i| v.delete(0) if cnt % 2 != 0 cnt += 1 } rgs