Skip to content

Commit 10fc535

Browse files
authored
remove hash-map dep on map (#281)
1 parent d9365bf commit 10fc535

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 4 additions & 2 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)))
1277912780
(values [coll]
12780-
(es6-iterator (map #(-val %) (-key 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)