From: Love U Ruby Date: 2013-05-22T00:27:12+09:00 Subject: Re: Enum#each issue Hans Mackowiak wrote in post #1109722: Apologies to make you irritate on me. Your first example I understood. The below one little bit hard for me. > the normal each DOES NOT!! > there is a sample with "map!" > a = [1,2,3,4] > m=a.to_enum(:map!) > > m.next #=> 1 > m.feed("a") > > m.next #=> 2 Why not "a" comes out here? > > m.next #=> 3 > m.feed("b") > > m.next #=> 4 why not "b" comes not here like your first example. > > a #=> ["a", nil, "b", 4] #=> How has the output generated? from where `nil` comes? -- Posted via http://www.ruby-forum.com/.