Skip to content

Instantly share code, notes, and snippets.

@DaveWM
Created July 4, 2021 12:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaveWM/51bf5e91cda74bf03d69e269b35c6df9 to your computer and use it in GitHub Desktop.
Save DaveWM/51bf5e91cda74bf03d69e269b35c6df9 to your computer and use it in GitHub Desktop.
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