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.
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.
lein repl
(this will not create a lein project)
then in repl
user=> (load-file "yourfile.clj")
© 2022 - 2024 — McMap. All rights reserved.
load-file
will also reload the updates. – Velleman