From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: vlnx@mail.com Newsgroups: gmane.emacs.devel Subject: Re: Is there a function for auto currying in Elisp? Date: Thu, 21 Dec 2017 10:48:54 -0600 Message-ID: References: <87tvwki1oe.fsf@petton.fr> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513874848 4369 195.159.176.226 (21 Dec 2017 16:47:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Dec 2017 16:47:28 +0000 (UTC) User-Agent: mu4e 1.0-alpha2; emacs 27.0.50 Cc: Emacs Devel To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 21 17:47:24 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eS409-0000Di-Um for ged-emacs-devel@m.gmane.org; Thu, 21 Dec 2017 17:47:22 +0100 Original-Received: from localhost ([::1]:58887 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eS423-00051f-Ez for ged-emacs-devel@m.gmane.org; Thu, 21 Dec 2017 11:49:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eS41s-00050G-3v for emacs-devel@gnu.org; Thu, 21 Dec 2017 11:49:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eS41p-0000JQ-2P for emacs-devel@gnu.org; Thu, 21 Dec 2017 11:49:08 -0500 Original-Received: from mout.gmx.com ([74.208.4.201]:59203) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eS41o-0000I7-S4 for emacs-devel@gnu.org; Thu, 21 Dec 2017 11:49:04 -0500 Original-Received: from localhost ([68.168.187.192]) by mail.gmx.com (mrgmxus002 [74.208.5.15]) with ESMTPSA (Nemesis) id 0LvVlF-1f8znN0gkN-010fMH; Thu, 21 Dec 2017 17:48:58 +0100 In-reply-to: <87tvwki1oe.fsf@petton.fr> X-Provags-ID: V03:K0:p1bMp3PjTB36fmM7OrqlwIWgY4cc5AV5b25pMuUoAV/jrr9NMnx 2P457T52P0YeznR0aE/Z73AuvASUhTsYO82fu3SKcV2xw421ZIFYzJk02sJ4m8xSSseX7Np m+U6FcnKyZBG+FK6IhcKInBHSzpw95ILRO5QusZGn+Kr2Fn+IDiNd7qno2CQoGt0fN5cz9G BcfAiJgO9qRP81cj7rUNw== X-UI-Out-Filterresults: notjunk:1;V01:K0:JQwTfNBPhIQ=:K6xB94jQjsgS5YtTo8+NoF Ga4rIAQfDMJFbyKrlPhymo0+xLFSftNyuObNBxBDeFtdMM3NPecaTDOC1R4jGzxwBJ0BGTr0A WBebW0iaII+KaFtqAVYsg8oZwFpc5/uZPEpv2103Wxas9/uOspgQuDiMuzYL2PvJik6MKsIFH /Px6iK4Mn0Hg3Qs/ze0v+4jZOwK4Thg7r6zWQSmCow3JPYt0ov+thFDd17JNsj+LK6arx8knf KlVGEvHfrJB0Xh2jRgoTK1Rpqy+J7BqFwKuAxl8UWmzba6PeX5EyScZ03XS1WIjk3utZVRKA/ NS5WsBNVPuFTB1BJF7aKMXOs0Yzn9nj/NCSnBVpWRaGZvsCNtKetkrTWlptSXXTNUDs0aWPYa 7rKlNbHmiRShBHPnUiJvzc+Wc5dL0feS6a16Fe4p6nrEuEOt5+pYdZ6LfPlqBVNMqnqNhCxsC iOM648aZSME990llbBEkR223+VXcoxfiNoECrDT6uOZCE/ykaBhrI5hEzFjl8Esh3vji4jLpR pzcSUtlQEOttUKm37ybzp8Mcb17x0/Id/q/8wjjGRPbKdZvEfZ3s3JKGTtMpUlbCJLvKXtEDO gVVup1yHeVN0rXlSSfjmQIepsVh45KwwHEVktkG0/kPITo5cuadZ8VU6a4mOOc0yMIHUCR5I9 WC2hEXWrvSsSm2UPF9VW6d136Oq57aZNbOxHv33Vdfmfa7yAnuH4eXksauwxaVhesPWtur+2T 2azSFZN6E1s1iYiiYsBABGgPKkLCOBzbdQzaZ34H+YPdJ8bw4MjAQDHCewg3TzhS7LeGiFdq X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.208.4.201 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221301 Archived-At: Nicolas Petton writes: > I've been looking for a function that would automatically curry its > argument, but couldn't find it. Maybe I just missed it? This may be what you are looking for: #+BEGIN_SRC emacs-lisp (defun funcall-list (funcs list) "Apply `funcall' of each FUNCS on LIST, recursively defined" (if (car funcs) (funcall-list (cdr funcs) (funcall (car funcs) list)) list)) #+END_SRC