On 10/27/06, James Edward Gray II <james / grayproductions.net> wrote:
> On Oct 27, 2006, at 11:12 AM, Daniel Berger wrote:
>
> > At the moment, the Array#map and Array#map! methods aren't
> > officially defined as aliases.
>
> Uh, are they?
>
>  >> a = (1..5).to_a
> => [1, 2, 3, 4, 5]
>  >> a.map { |i| i * 2 }
> => [2, 4, 6, 8, 10]
>  >> a
> => [1, 2, 3, 4, 5]
>  >> a.map! { |i| i * 2 }
> => [2, 4, 6, 8, 10]
>  >> a
> => [2, 4, 6, 8, 10]
>
> James Edward Gray II
>
>
>

I was thrown too, not map and map!, but rather

map and collect

and

map! and collect!

(I got it after I read the patch)
pth