Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(macro-do [name pos] `(def ~name #(nth % ~pos))
third 2
fourth 3
fifth 4)
#'amalloy.utils.macro/fifth
amalloy.utils.macro=> (third (range))
2
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.