[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a function for auto currying in Elisp?
From: |
Clément Pit-Claudel |
Subject: |
Re: Is there a function for auto currying in Elisp? |
Date: |
Thu, 21 Dec 2017 12:22:23 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
On 2017-12-21 11:56, Nicolas Petton wrote:
> Clément Pit-Claudel <address@hidden> writes:
>
>> apply-partially is the closest you'll get, I think.
>
> That's my thought as well, but it's not the same thing. It may be worth
> adding a new `curry' function then.
It's tricky to know what exactly curry should do, though, because of &optional
and &rest arguments.
Also, won't you need a funcall for each application of your curried function?
Clément.
Re: Is there a function for auto currying in Elisp?, vlnx, 2017/12/21
Re: Is there a function for auto currying in Elisp?, Stefan Monnier, 2017/12/21