We will not argue on that one! Stef On Jul 21, 2010, at 6:55 PM, Levente Uzonyi wrote:
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 <renggli@gmail.com> wrote:
Ahh, it is called #reduce:, #reduceLeft: and #reduceRight: in Pharo.
Lukas
On 21 July 2010 18:27, Lukas Renggli <renggli@gmail.com> 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 <stephane.ducasse@inria.fr> 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 Pharo-project@lists.gforge.inria.fr 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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project