Why doesn't the following snippet of code print "1" to the console?
(loop
[i 0]
(println (if (= i 0) (recur 1) i)))
Instead, it throws clojure.lang.ExceptionInfo: Can't recur here at line 3
in the REPL. Are nested (recur..)
statements like this not allowed in Clojure(Script)?