ClojureDocs

导航

命名空间

=

clojure.core

自 1.0 提供 (源代码)
  • (= 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.