title: clojure: how to bind console input to a variable?
body: <p>I'm trying to learn clojure, but coming from OO background simple things look like mission impossible. For instance, how do I write the function that would accept console input and output it into console as well?</p>
  
  <p>I'm trying something like this, but it doesn't work.</p>
  
  <pre><code>(ns ClojureTest2.core)
  
  ,(defn fun [] 
     (let [input (read-line)]) 
     (println input)
   )
  
  (fun [])
  </code></pre>
  
  <p>P.S. I work with eclipse - counterclockwise</p>