Skip to content

Instantly share code, notes, and snippets.

@davegolland
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save davegolland/e5a3332502b767b96f45 to your computer and use it in GitHub Desktop.
Save davegolland/e5a3332502b767b96f45 to your computer and use it in GitHub Desktop.
FE-Blogpost-Threading
(defmacro ->>
([x form] (if (seq? form)
(with-meta `(~(first form) ~@(next form) ~x) (meta form))
(list form x)))
([x form & more] `(->> (->> ~x ~form) ~@more)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment