[PSA MEMBERS] Re: [Types-sig] Suggestions for python 2

skaller skaller@maxtal.com.au
Tue, 18 Jan 2000 07:51:45 +1100

Edward Welbourne wrote:
> >>   * certain tools the functional programmers crave, notably a truly
> >>     faithful implementation of currie()
> >
> >       not required: python lambdas subsume what can be done with
> >       currying.
> Unfortunately, unless I'm missing something, this is only true when you
> know the call-signature of the function you are packaging.

> Can you show me a piece of valid python (using lambdas or otherwise)
> which achieves this effect ?

It hadn't occured to me you wouldn't know the arguments.
I always know the positional arguments (not necessarily the
optional ones) -- there's no other way to call a function :-)

John (Max) Skaller, mailto:skaller@maxtal.com.au
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
homepage: http://www.maxtal.com.au/~skaller
download: ftp://ftp.cs.usyd.edu/au/jskaller