[squeak-dev] Re: Collection>>sum implementation

Eliot Miranda eliot.miranda at gmail.com
Mon Aug 11 17:54:56 UTC 2008

On Mon, Aug 11, 2008 at 9:21 AM, Paolo Bonzini <bonzini at gnu.org> wrote:

> This method is called #fold: in VisualWorks, GNU Smalltalk and others.
>>> Paolo
>> Ah ok.  It's called reduce in python and Lisp, and that's also what
>> Lukas named it in his package.
> I think #fold: is the Haskell name (they have both foldl and foldr), but
> probably it comes from somewhere else.  Eliot should know...

I wish I knew for sure.  I think it is called fold in certain lisps too.
 But I defer to
They prefer fold but also give *reduce*, *accumulate*, *compress* &
*inject*(their emphasis) as other names.

> Paolo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080811/f677994c/attachment.htm

More information about the Squeak-dev mailing list