Created
February 26, 2024 07:09
-
-
Save yanateras/e1fd79afc56677c84fefaa8c46664216 to your computer and use it in GitHub Desktop.
Threading macro for Emacs Lisp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro -> (&rest forms) | |
(cl-reduce #'(lambda (xs x) (append x (list xs))) forms)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment