Skip to content

Instantly share code, notes, and snippets.

@wpcarro
Last active October 18, 2019 13:15
Show Gist options
  • Select an option

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

Select an option

Save wpcarro/a95f1e9cd09ff1e8d4c5977ab38daf10 to your computer and use it in GitHub Desktop.
Point-free threading in Elisp
(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