ClojureREPL
ClojureREPL copied to clipboard
Getting ArityException where I shouldn't
If you try this:
(defn square [x] (* x x))
(= 25 (let [inc-and-square (comp square inc)] (inc-and-square 4 9)))
at http://web.clojurerepl.com/ you get error:
clojure.lang.ArityException: Wrong number of args (2) passed to: core/inc
while at http://clojurescript.net/ the same snippet gives true. FYI, the snippet is from this clojurescript koan http://clojurescriptkoans.com/#creating-functions/5 where the it also works as expected. cheers