From: Nathaniel Talbott Date: 2003-10-09T22:54:56+09:00 Subject: Re: Enumerable#inject is surprising me... 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 :-) Nathaniel <:((><