Yehonathan Sharvit / Jan 31 2019
Remix of Clojure by Nextjournal
Clojure Template
Clojure Template
Remix this to get started with Clojure 1.10.0↩ and add-lib.
{:deps {org.clojure/clojure {:mvn/version "1.10.0"} org.clojure/tools.deps.alpha {:git/url "https://github.com/clojure/tools.deps.alpha.git" :sha "f6c080bd0049211021ea59e516d1785b08302515"}} :aliases {:klipse-repl {:extra-deps {viebel/klipse-repl {:mvn/version "0.2.1"} #_{:git/url "https://github.com/viebel/klipse-repl" :sha "ee5e5a258aa0e727fc005682f7b438430acce30d"}} :main-opts ["-m" "klipse-repl.main"]}}}
deps.edn
Extensible Data Notation
You can add dependencies by modifying the deps.edn
above (requires a runtime restart)...
(use 'clojure.tools.deps.alpha.repl) (clojure-version)
"1.10.0"
...or at runtime using add-lib
:
(add-lib 'org.clojure/core.async {:mvn/version "0.4.490"})
true
(require '[clojure.core.async :as async])
(async/timeout 100)
4[clojure.core.async.impl.channels.ManyToManyChannel,"0x6795bc21","clojure.core.async.impl.channels.ManyToManyChannel@6795bc21",{1}]
echo "(map inc [1 2 3])" | clj
echo "(map inc [1 2 3])" | clojure
clj -e "(def a 1)"
clojure -Sdeps "{:deps {viebel/klipse-repl {:mvn/version \"0.2.1\"}}}" -m klipse-repl.main
clojure -Sdeps "{:deps {viebel/klipse-repl {:mvn/version \"0.2.1\"}}}" -m klipse-repl.main