@@ -12401,7 +12401,7 @@ reduces them without incurring seq initialization"
12401
12401
(reduce -conj coll entry)))
12402
12402
12403
12403
IEmptyableCollection
12404
- (-empty [coll] (with-meta (. ObjMap -EMPTY) meta))
12404
+ (-empty [coll] (- with-meta (. ObjMap -EMPTY) meta))
12405
12405
12406
12406
IEquiv
12407
12407
(-equiv [coll other] (equiv-map coll other))
@@ -12433,14 +12433,14 @@ reduces them without incurring seq initialization"
12433
12433
(if-not (nil? (scan-array 1 k keys))
12434
12434
(let [new-strobj (obj-clone strobj keys)]
12435
12435
(gobject/set new-strobj k v)
12436
- (ObjMap. meta keys new-strobj nil )) ; overwrite
12437
- (let [new-strobj (obj-clone strobj keys) ; append
12438
- new-keys (aclone keys)]
12436
+ (ObjMap. meta keys new-strobj nil )) ; overwrite
12437
+ (let [new-strobj (obj-clone strobj keys) ; append
12438
+ new-keys (aclone keys)]
12439
12439
(gobject/set new-strobj k v)
12440
12440
(.push new-keys k)
12441
12441
(ObjMap. meta new-keys new-strobj nil )))
12442
12442
; non-string key. game over.
12443
- (with-meta (into ( simple-hash-map k v) ( seq coll)) meta)))
12443
+ (- with-meta (apply simple-hash-map k v ( - seq coll)) meta)))
12444
12444
(-contains-key? [coll k]
12445
12445
(if (and (string? k)
12446
12446
(not (nil? (scan-array 1 k keys))))
@@ -12662,7 +12662,7 @@ reduces them without incurring seq initialization"
12662
12662
[& keyvals]
12663
12663
(loop [in (seq keyvals), out (. HashMap -EMPTY)]
12664
12664
(if in
12665
- (recur (nnext in) (assoc out (first in) (second in)))
12665
+ (recur (nnext in) (- assoc out (first in) (second in)))
12666
12666
out)))
12667
12667
12668
12668
(deftype Set [meta hash-map ^:mutable __hash]
@@ -12683,7 +12683,7 @@ reduces them without incurring seq initialization"
12683
12683
(-equiv [coll other]
12684
12684
(and
12685
12685
(set? other)
12686
- (= (count coll) (count other))
12686
+ (= (- count coll) (count other))
12687
12687
(every? #(contains? coll %)
12688
12688
other)))
12689
12689
@@ -12694,7 +12694,7 @@ reduces them without incurring seq initialization"
12694
12694
(-seq [coll] (keys hash-map))
12695
12695
12696
12696
ICounted
12697
- (-count [coll] (count (seq coll)))
12697
+ (-count [coll] (- count (- seq coll)))
12698
12698
12699
12699
ILookup
12700
12700
(-lookup [coll v]
@@ -12706,7 +12706,7 @@ reduces them without incurring seq initialization"
12706
12706
12707
12707
ISet
12708
12708
(-disjoin [coll v]
12709
- (Set. meta (dissoc hash-map v) nil ))
12709
+ (Set. meta (- dissoc hash-map v) nil ))
12710
12710
12711
12711
IEditableCollection
12712
12712
(-as-transient [coll]
@@ -12736,11 +12736,11 @@ reduces them without incurring seq initialization"
12736
12736
(defn simple-set
12737
12737
[coll]
12738
12738
(if (set? coll)
12739
- (with-meta coll nil )
12739
+ (- with-meta coll nil )
12740
12740
(let [in (seq coll)]
12741
12741
(if (nil? in)
12742
12742
#{}
12743
12743
(loop [in in out (. Set -EMPTY)]
12744
12744
(if-not (nil? in)
12745
- (recur (next in) (conj out (first in)))
12745
+ (recur (next in) (- conj out (first in)))
12746
12746
out))))))
0 commit comments