Assuming the Java or Clojure library is on your classpath, it *should* be
usable from the REPL.
(import '[java.library SomeClass])
(.foo (SomeClass. 42))
(require '[clojure.contrib.math :as m])
(m/sqrt 42.0)
or whatever
On Thu, Nov 7, 2013 at 8:00 AM, Starry SHI wrote:
> Hi. I am new to c
Hi. I am new to clojure, and I find leiningen REPL is a convenient tool for
clojure code testing. However, I find I cannot include external java
libraries and call functions defined in those libraries from lein REPL.
For example, my clojure code needs to compute square root, which is defined
in