Skip to content

Instantly share code, notes, and snippets.

@raek raek/arrow.clj
Created Jan 7, 2011

Embed
What would you like to do?
(defmacro arrow
([val]
val)
([val x & xs]
(if (symbol? x)
(list* 'user/arrow (list x val) xs)
(list* 'user/arrow
(list* (first x) val (rest x))
xs))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.