From: "Clément Pit-Claudel" <cpitclaudel@gmail.com>
To: Nicolas Petton <nicolas@petton.fr>, emacs-devel@gnu.org
Subject: Re: Is there a function for auto currying in Elisp?
Date: Thu, 21 Dec 2017 12:22:23 -0500 [thread overview]
Message-ID: <06c04109-33b2-29ed-ac77-4a81544608ec@gmail.com> (raw)
In-Reply-To: <87o9mshvee.fsf@petton.fr>
On 2017-12-21 11:56, Nicolas Petton wrote:
> Clément Pit-Claudel <cpitclaudel@gmail.com> 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.
next prev parent reply other threads:[~2017-12-21 17:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-21 14:41 Is there a function for auto currying in Elisp? Nicolas Petton
2017-12-21 15:36 ` Philipp Stephani
2017-12-21 16:13 ` Nicolas Petton
2017-12-21 16:50 ` Clément Pit-Claudel
2017-12-21 16:56 ` Nicolas Petton
2017-12-21 17:22 ` Clément Pit-Claudel [this message]
2017-12-21 18:00 ` Nicolas Petton
2017-12-21 16:48 ` vlnx
2017-12-21 21:04 ` John Wiegley
2017-12-21 19:13 ` Stefan Monnier
2017-12-22 9:14 ` Nicolas Petton
2017-12-22 13:51 ` Stefan Monnier
2017-12-22 15:34 ` Nicolas Petton
2017-12-26 18:56 ` John Wiegley
2017-12-22 15:38 ` Nicolas Petton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=06c04109-33b2-29ed-ac77-4a81544608ec@gmail.com \
--to=cpitclaudel@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=nicolas@petton.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).