Created
July 4, 2021 12:07
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(->> (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