From: Robert Klemme Date: 2008-05-16T23:09:20+09:00 Subject: Re: iterate Array 2008/5/16 Sijo Kg : > I have a doubt regrding .collect That is why I asked tht.Is there any > such a method? Yes, there is. But your usage of collect does not make any sense: xxx.collect! {|n| n} Using #collect or #map with this block is basically a noop because elements will be replaced by themselves. Kind regards robert -- use.inject do |as, often| as.you_can - without end