From: Yukihiro Matsumoto Date: 2008-11-05T02:14:53+09:00 Subject: [ruby-core:19699] Re: Odd TypeError in inject (1.9.1 preview 1) Hi, In message "Re: [ruby-core:19694] Re: Odd TypeError in inject (1.9.1 preview 1)" on Tue, 4 Nov 2008 20:59:08 +0900, Brian Candler writes: |On Tue, Nov 04, 2008 at 03:41:27PM +0900, Yukihiro Matsumoto wrote: |> See [ruby-core:19691]. It's an issue with #next. | |Thanks: I see that the 'next' API for calling enumerators is less powerful |compared to each { ...block... }, since the block can return a value. | |But when does #inject actually depend on #next, rather than #each? Not really. Both #inject and #next depends on #each. Maybe I emphasized #next too much. That difference have bugged me for a while. matz.