|
From: | vlnx |
Subject: | Re: Is there a function for auto currying in Elisp? |
Date: | Thu, 21 Dec 2017 10:48:54 -0600 |
User-agent: | mu4e 1.0-alpha2; emacs 27.0.50 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |