From: Mathieu Bouchard Date: 2000-06-08T01:21:05-04:00 Subject: [ruby-talk:03179] Re: Min and max? > > >>>>> "M" == Mathieu Bouchard writes: > > M> Totally unrelated, I propose a new operation called "accum" in > > M> Enumeration: > > Something like apply (in scheme) ? > 'inject' is documented in the FAQ. > In the book, we implement a more general version in Enumerable, with > the option to specify starting value, so it can be used to concatenate > strings and well as find sums. In what book? btw the FAQ has already "the" general version with a starting value and in Enumerable. It's a pity it's not in the standard lib, it seems more useful than, say, splicing out null elements from an array. Mathieu Bouchard