From: Martin DeMello Date: 2005-10-27T19:52:03+09:00 Subject: Re: Cleaner syntax for .map (is there already a way, or ruby2 idea?) Robert Klemme wrote: > > >> %w{a b c}.mapx :upcase > => ["A", "B", "C"] > >> %w{a b c}.mapx {|a| a + "x"} > => ["ax", "bx", "cx"] > >> %w{abc bcd cde}.mapx :upcase, :reverse > => ["CBA", "DCB", "EDC"] That is neat - I never thought of unifying map and mapx martin