Try this:
(ns ClojureTest2.core)
(defn fun []
(let [input (read-line)]
(println input)))
(fun)
Note how the println
is enclosed in the let
statement. input
will only exist within the let
statement. Also, the empty parameter list of fun
means you do not need to supply any arguments to call it.