linus sellberg ha scritto:
> georgesawyer wrote:
> 
>>> did I mention that I love #inject? :-)
>>
>> (Wistfully) Even though 'inject' is the name in Smalltalk, I feel it were
>> better named, 'consolidate'.
> 
> 
> I don't have anything against #inject, but I could see the case for an 
> alias #accumulate, much like SICP's accumulate which afaik is the same 
> thing.
> 
> (I wouldn't mind #reduce as well, though that would be slightly incorrect)

#fold would be better imho (even if slightly incorrect)