Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defmacro macro-a
  2.   ([elem] nil)
  3.   ([elem func] [(if (seq? func)
  4.                  (with-meta `(~(first func) ~elem ~@(next func)) (meta func))
  5.                  (list func elem))])
  6.   ([elem func & funcs]
  7.      `(flatten [(macro-a ~elem ~func) (macro-a ~elem ~@funcs)])))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement