how to load your own file into a lein repl?
Asked Answered
V

1

12

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.

Velleman answered 20/8, 2015 at 11:49 Comment(0)
K
16

lein repl (this will not create a lein project)

then in repl

user=> (load-file "yourfile.clj")

Kitty answered 20/8, 2015 at 11:58 Comment(1)
after the source file is updated, load-file will also reload the updates.Velleman

© 2022 - 2024 — McMap. All rights reserved.