I am reading a Clojure book. I typed one of the examples into a file. How can I load it into a lein repl
?
I don't have a lein
project and would prefer not to create one.
So a ClojureScript REPL consists of two parts: the first part is written in Clojure, it handles the REPL UI, and takes care of compiling ClojureScript to JavaScript. This JavaScript code then gets handed over to the second part, the JavaScript environment, which evaluates the code and hands back the result.
lein repl
(this will not create a lein project)
then in repl
user=> (load-file "yourfile.clj")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With