Skip to content

Commit 4eff03d

Browse files
committed
add missing simple Set disjoin identical? check
1 parent 5c25acb commit 4eff03d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13014,7 +13014,10 @@ reduces them without incurring seq initialization"
1301413014

1301513015
ISet
1301613016
(-disjoin [coll v]
13017-
(Set. meta (-dissoc hash-map v) nil))
13017+
(let [new-hash-map (-dissoc hash-map v)]
13018+
(if (identical? new-hash-map hash-map)
13019+
coll
13020+
(Set. meta new-hash-map nil))))
1301813021

1301913022
IEditableCollection
1302013023
(-as-transient [coll]

0 commit comments

Comments
 (0)