Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(defmacro average-m
[coll]
`(constexpr average ~coll))
(walk/macroexpand-all '(average-m [1 2 4 5]))
=> 3 ;; After compilation
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.