Skip to content

Instantly share code, notes, and snippets.

@raek
Created January 7, 2011 20:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raek/770086 to your computer and use it in GitHub Desktop.
Save raek/770086 to your computer and use it in GitHub Desktop.
(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