In clojure is there something like "is-macro?" to test to see if something is a macro?
Given a var, its metadata can tell you whether it's a macro:
(:macro (meta #'when))
=> true
(:macro (meta #'identity))
=> nil
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With