Created
February 26, 2024 07:11
-
-
Save yanateras/820576c15134afa16831d9badc443e4d to your computer and use it in GitHub Desktop.
Threading macro for Common 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) | |
(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