From: Martin DeMello Date: 2008-06-11T01:27:03+09:00 Subject: [ruby-core:17192] Re: Enumerable::Enumerator#with_memo On Mon, Jun 9, 2008 at 10:57 PM, Jeremy Kemper wrote: > > I prefer returning. It's clear that the argument is yielded and > returned. Maybe enum.also_yielding(object) { |(*args), memo| ... }. > > In any case, the verb in the method name describing behavior > (yielding, returning, inject, map, etc) is much better than a noun > describing what's yielded (memo) but not behavior. I like the -ing series of names, too. Maybe #accumulating, though that's a long word to type. ary.each.accumulating(0) {|i, a| a += i} martin