Skip to content

Commit 265474b

Browse files
committed
- -iterator impl for lite maps
1 parent 20a32cb commit 265474b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12557,6 +12557,13 @@ reduces them without incurring seq initialization"
1255712557
(-dissoc! [coll key]
1255812558
(-dissoc coll key))
1255912559

12560+
IIterable
12561+
(-iterator [coll]
12562+
(let [xs (-seq coll)]
12563+
(if (some? xs)
12564+
(-iterator xs)
12565+
(nil-iter))))
12566+
1256012567
IPrintWithWriter
1256112568
(-pr-writer [coll writer opts]
1256212569
(print-map coll pr-writer writer opts)))
@@ -12717,6 +12724,13 @@ reduces them without incurring seq initialization"
1271712724
(-dissoc! [coll key]
1271812725
(-dissoc coll key))
1271912726

12727+
IIterable
12728+
(-iterator [coll]
12729+
(let [xs (-seq coll)]
12730+
(if (some? xs)
12731+
(-iterator xs)
12732+
(nil-iter))))
12733+
1272012734
IPrintWithWriter
1272112735
(-pr-writer [coll writer opts]
1272212736
(print-map coll pr-writer writer opts)))

0 commit comments

Comments
 (0)