From: Hans Mackowiak Date: 2013-05-21T23:46:23+09:00 Subject: Re: Enum#each issue WHY DONT YOU READ MY POSTS UNTIL THE END??? >> feed affects the result of yield, BUT the enumerator >> method need to take care with it 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 m.next #=> 3 m.feed("b") m.next #=> 4 a #=> ["a", nil, "b", 4] -- Posted via http://www.ruby-forum.com/.