Last active
October 18, 2019 13:15
-
-
Save wpcarro/a95f1e9cd09ff1e8d4c5977ab38daf10 to your computer and use it in GitHub Desktop.
Point-free threading in Elisp
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
| (require 'dash) | |
| (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