Skip to content

Instantly share code, notes, and snippets.

@wpcarro
Created November 25, 2022 05:43
Show Gist options
  • Select an option

  • Save wpcarro/2c884eb94e94b95d352f2df3c857f4f8 to your computer and use it in GitHub Desktop.

Select an option

Save wpcarro/2c884eb94e94b95d352f2df3c857f4f8 to your computer and use it in GitHub Desktop.
Random Elisp macro for composing functions.
(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