From: Damphyr Date: 2005-11-25T19:50:21+09:00 Subject: Faster way to pick the every other array member? we have [1,2,3,4,5,6,7] and want [2,4,6] Is there a way other than fields=[1,2,3,4,5,6,7] fields.collect!{|f| f if fields.index(f)%2==1 }.compact! And by another way I mean something shorter and more beautiful :). Cheers, V.- -- http://www.braveworld.net/riva ____________________________________________________________________ http://www.freemail.gr - ������ �������� ������������ ������������. http://www.freemail.gr - free email service for the Greek-speaking.