ClojureDocs

Nav

Namespaces

=

clojure.core

Available since 1.0 (source)
  • (= x)
  • (= x y)
  • (= x y & more)
Equality. Returns true if x equals y, false if not. Same as
Java x.equals(y) except it also works for nil, and compares
numbers and collections in a type-independent manner.  Clojure's immutable data
structures define equals() (and thus =) as a value, not an identity,
comparison.