Created
November 25, 2022 05:43
-
-
Save wpcarro/2c884eb94e94b95d352f2df3c857f4f8 to your computer and use it in GitHub Desktop.
Random Elisp macro for composing functions.
This file contains hidden or 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) | |
| "Compose a new, point-free function by composing FORMS together." | |
| (let ((sym (gensym))) | |
| `(lambda (,sym) | |
| (->> ,sym ,@forms)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment