On Wed, 21 Jul 2010, Lukas Renggli wrote:

Now I remember: We called it #reduce: because this is much more common
among programming languages.

Really? http://en.wikipedia.org/wiki/Fold_(higher-order_function)


Levente


The implementation in Pharo is much more general than the one of
Squeak. Pharo behaves the same as Squeak for two argument blocks on
SequenceableCollection. Squeak does not support anything else.

Lukas

On 21 July 2010 18:32, Lukas Renggli <[email protected]> wrote:
Ahh, it is called #reduce:, #reduceLeft: and #reduceRight: in Pharo.

Lukas

On 21 July 2010 18:27, Lukas Renggli <[email protected]> wrote:
See <http://code.google.com/p/pharo/issues/detail?id=2401>. Looks like
it never got merged though.

Lukas

On 21 July 2010 18:20, Stéphane Ducasse <[email protected]> wrote:
hi lukas

I thought that we introduced the equivalent when we were pair programming at my 
place.
fold: got introduced in squeak and may be your implementation/API should be 
pushed there?
Stef

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project




--
Lukas Renggli
www.lukas-renggli.ch




--
Lukas Renggli
www.lukas-renggli.ch




--
Lukas Renggli
www.lukas-renggli.ch

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to