ClojureREPL icon indicating copy to clipboard operation
ClojureREPL copied to clipboard

Getting ArityException where I shouldn't

Open jared83 opened this issue 10 years ago • 0 comments

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

jared83 avatar Nov 24 '15 13:11 jared83