Make identical? variadic

Description

(= 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.

Environment

None

Attachments

1
  • 03 Sep 2013, 03:47 PM

Activity

Show:

Tassilo Horn September 3, 2013 at 3:43 PM

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

Details

Assignee

Reporter

Approval

Triaged

Patch

Code and Test

Priority

Affects versions

Created June 19, 2013 at 7:44 PM
Updated May 15, 2017 at 9:20 PM

Flag notifications