From: GOTO Kentaro Date: 2001-11-16T23:07:37+09:00 Subject: [ruby-talk:25430] Re: Arrays, iterators, and map/collect In message "[ruby-talk:25403] Re: Arrays, iterators, and map/collect" on Fri, 16 Nov 2001 19:19:52 +0900, Robert Feldt writes: > I would do it like this but allow myself to shorten it to > > strings.map! {|s| s[0]==?a ? s : ("pre." + s)} > > since its a one-liner. > > Don't you feel it is natural? Why? Oh, Yes. It's natural. My change_if is a harmful reinvention of map! :< -- Gotoken