From: "Юрий Соколов" Date: 2012-02-01T18:14:02+09:00 Subject: [ruby-core:42306] Re: [ruby-trunk - Feature #5663] Combined map/select method --f46d044632700b0c2804b7e380ca Content-Type: text/plain; charset=ISO-8859-1 2012/2/1 Nobuyoshi Nakada > > Issue #5663 has been updated by Nobuyoshi Nakada. > > Yura Sokolov wrote: > > I often wish to have methods, which likes to `inject` but do use return > value of block for next iteration: > > Try each_with_object. > Yeah, it is good :) though it have a long name. It's pity that 1.9.3 hadn't it. Yura --f46d044632700b0c2804b7e380ca Content-Type: text/html; charset=ISO-8859-1
2012/2/1 Nobuyoshi Nakada <nobu@ruby-lang.org>

Issue #5663 has been updated by Nobuyoshi Nakada.

Yura Sokolov wrote:
> I often wish to have methods, which likes to `inject` but do use return value of block for next iteration:

Try each_with_object.

Yeah, it is good :) though it have a long name. It's pity that 1.9.3 hadn't it.

Yura


--f46d044632700b0c2804b7e380ca--