On 10/22/2019 6:15 AM, Antoon Pardon wrote:
On 22/10/19 12:02, Terry Reedy wrote:
On 10/22/2019 4:58 AM, Antoon Pardon wrote:
Using python 3.5
I have been experimenting with curried functions. A bit like in Haskell.
So I can write the following function:
def sum4(a, b, c, d):
return a +
Antoon Pardon wrote:
> On 22/10/19 12:02, Terry Reedy wrote:
>> On 10/22/2019 4:58 AM, Antoon Pardon wrote:
>>> Using python 3.5
>>>
>>> I have been experimenting with curried functions. A bit like in Haskell.
>>> So I can write the following function:
>>>
>>> def sum4(a, b, c, d):
>>> return a +
On 22/10/19 12:02, Terry Reedy wrote:
> On 10/22/2019 4:58 AM, Antoon Pardon wrote:
>> Using python 3.5
>>
>> I have been experimenting with curried functions. A bit like in Haskell.
>> So I can write the following function:
>>
>> def sum4(a, b, c, d):
>> return a + b + c + d
>>
>> summing = c
On 10/22/2019 4:58 AM, Antoon Pardon wrote:
Using python 3.5
I have been experimenting with curried functions. A bit like in Haskell.
So I can write the following function:
def sum4(a, b, c, d):
return a + b + c + d
summing = curry(sum4)
print summing(1)(2)(3)(4) # this prints 10.
The p