From: Love U Ruby Date: 2013-05-22T01:31:50+09:00 Subject: Re: Enum#each issue Ok! I tried the below: 2.0.0p0 :001 > a = [1,2,3,4] => [1, 2, 3, 4] 2.0.0p0 :002 > m=a.to_enum(:map!) => # 2.0.0p0 :003 > m.next => 1 2.0.0p0 :004 > a => [1, 2, 3, 4] Still ok. 2.0.0p0 :005 > m.next => 2 2.0.0p0 :006 > a => [nil, 2, 3, 4] Now how that nil comes above? I am totally confused. 2.0.0p0 :007 > m.next => 3 2.0.0p0 :008 > a => [nil, nil, 3, 4] 2.0.0p0 :009 > -- Posted via http://www.ruby-forum.com/.