=> (.equals (AA. 1) {:a 1} )
true
=> (= (AA. 1) {:a 1} )
false
=> (.equals {:a 1} (AA. 1) )
true
=> (= {:a 1} (AA. 1) )
false
Looks like "=" is not ".equals", hmm... but this doc says different:
http://clojuredocs.org/clojure_core/clojure.core/=
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.
--
I may be wrong or incomplete.
Please express any corrections / additions,
they are encouraged and appreciated.
At least one entity is bound to be transformed if you do ;)