ST
.equals
для своего типа, и =
работает как нужноhashCode
ещёSize: a a a
ST
.equals
для своего типа, и =
работает как нужноhashCode
ещёГ
ST
(deftype CacheKey [k args]
Object
(hashCode [_]
(if (some? k) (.hashCode k), 0))
(equals [this obj]
(or (identical? this obj)
(and (instance? CacheKey obj)
(= k (.-k ^CacheKey obj))))))
ST
(defn =
"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."
E
A
Г
MP
MP
(svg-icon :right-arrow)
(get my-resource-icon-map :right-arrow)
DK
(svg-icon :right-arrow)
(get my-resource-icon-map :right-arrow)
MP
DK
MP
MP
DK
MP
MP
MP