From: Robert Klemme Date: 2003-10-09T23:33:04+09:00 Subject: Re: Enumerable#inject is surprising me... "Nathaniel Talbott" schrieb im Newsbeitrag news:019801c38e6c$e6ea41f0$c81e140a@abraham... > dblack@superlink.net [mailto:dblack@superlink.net] wrote: > > > > #inject ignore the value returned by break, and return the last > > > result. > > > > I thought "break val" executed a break *and* generated a > > return value for the block at the same time: > > > > irb(main):011:0> a = proc { break 3 } .call; a > > => 3 > > > > Why wouldn't #inject treat the break the same way? > > I thought that was what was broken, but I believe I'm officially confused, > too :-) Welcome to the club. Me too. Does anybody out there (Matz, Nobu) dare to summarize problem and proposed solution? Thanks! robert