Skip to content

Commit 523a3b0

Browse files
committed
remove hash-map dep on map
1 parent d9365bf commit 523a3b0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12773,11 +12773,13 @@ reduces them without incurring seq initialization"
1277312773
(toString [coll]
1277412774
(pr-str* coll))
1277512775
(keys [coll]
12776-
(es6-iterator (map #(-key %) (-seq coll))))
12776+
(let [arr (. (-seq coll) -arr)]
12777+
(es6-iterator (prim-seq (.map arr -key (-seq coll))))))
1277712778
(entries [coll]
1277812779
(es6-entries-iterator (-seq coll)))
12779-
(values [coll]
12780-
(es6-iterator (map #(-val %) (-key coll))))
12780+
(keys [coll]
12781+
(let [arr (. (-seq coll) -arr)]
12782+
(es6-iterator (prim-seq (.map arr -val (-seq coll))))))
1278112783
(has [coll k]
1278212784
(contains? coll k))
1278312785
(get [coll k not-found]

0 commit comments

Comments
 (0)