If the method does what it sounds like (returns a new enumerator that yields the given object along with anything else the previous enumerator yielded), with_memo seems like a fine name to me. Akinori MUSHA wrote: > Hi, > > Earlier today I added a new instance method named `with_memo' to > Enumerable::Enumerator, but I'm not 100% sure if the name fits the > function. > > Some other options I could think of include: > > with: > - too general; may clash with a reserved keyword in future > > with_object: > - not bad, but too unspecific and a bit too long to use often > > with_obj: > - looks terrible when we have ObjectSpace.each_object > > with_accum: > - too specific > > > Anyone think of a better name? > > -- > Akinori MUSHA / http://akinori.org/ >