I like this point so we can include fold: then.

Stef

On Jul 21, 2010, at 7:15 PM, 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)
> 
> Yes, reduce is typically used without initial value, while fold is
> used with initial value (we already have inject:into: for that).
> 
> Lukas
> 
>> 
>> 
>> 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
>> 
> 
> 
> 
> -- 
> 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