Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Cursive REPL command to `def` multiple let bindings. Supports all forms of let bindings.
(->> (macroexpand '(let [~selection]))
second
(partition 2)
(map (fn [[sym val]]
(intern *ns* sym (eval val)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment