From: dblack@... Date: 2003-10-09T10:41:43+09:00 Subject: Re: Enumerable#inject is surprising me... On Thu, 9 Oct 2003 dblack@superlink.net wrote: > Using the new version: > > $ ./ruby -v > ruby 1.8.0 (2003-10-06) [i686-linux] > $ ./ruby -e 'p ["a"].inject("start") {|x,y| "b"}' > "b" > $ ./ruby -e 'p ["a"].inject("start") {|x,y| break "b"}' > "start" > > I'm still not understanding why these should be different, or how > "start" gets into the first one (the first block) at all. Whoops, I mean how it gets into the second one at all. David -- David Alan Black home: dblack@superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav