Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

(= 1 1 1) ;; => true
(= 1 1 2) ;; => false
(== 1 1 1) ;; => true
(== 1 1 2) ;; => false
(identical? 1 1 1) ;; ArityException Wrong number of args (3) passed to: core$identical-QMARK- clojure.lang.AFn.throwArity (AFn.java:437)

I think it would make far more sense to make identical? consistent with all other comparison operators
and allow it to take variadic number of arguments.

2 Answers

0 votes
by

Comment made by: tsdh

Here's a patch that makes identical? variadic and adds a test for identical?.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1219 (reported by alex+import)
...