I made a simple function in Clojure to print some values.
(defn printboard [] (
(dotimes [n 3]
(println n)
)
)
)
(printboard)
Now when i run this code as an application, it gives me an NullPointerException. When i run the code in the REPL it works perfect. Why does my code give me an NullPointerExeption in the application but not in the REPL?