From: Robert Feldt Date: 2001-11-17T11:25:23+09:00 Subject: [ruby-talk:25693] Re: Arrays, iterators, and map/collect On Sat, 17 Nov 2001, David Alan Black wrote: > I think the map! version is pretty clear, since that's what > map! basically does -- though I have to say, sometimes it > looks/feels better to me to do: > > strings = strings.map { ... } > > (though I don't know if there are performance considerations). > There are since this version creates a new Array and assigns to it. If it matters in practice is different question... However, if you've decided that performance is an issue a general performance tuning rule is to use bang methods if possible. Regards, /Robert