Skip to content

Commit 3ceb397

Browse files
committed
- add toString methods
1 parent 4de7a71 commit 3ceb397

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12249,6 +12249,10 @@ reduces them without incurring seq initialization"
1224912249
;;; Vector
1225012250

1225112251
(deftype Vector [meta array ^:mutable __hash]
12252+
Object
12253+
(toString [coll]
12254+
(pr-str* coll))
12255+
1225212256
IWithMeta
1225312257
(-with-meta [coll meta] (Vector. meta array __hash))
1225412258

@@ -12414,6 +12418,10 @@ reduces them without incurring seq initialization"
1241412418
(recur (+ i incr)))))))
1241512419

1241612420
(deftype ObjMap [meta keys strobj ^:mutable __hash]
12421+
Object
12422+
(toString [coll]
12423+
(pr-str* coll))
12424+
1241712425
IWithMeta
1241812426
(-with-meta [coll meta] (ObjMap. meta keys strobj __hash))
1241912427

@@ -12573,6 +12581,10 @@ reduces them without incurring seq initialization"
1257312581
; collisions. A bucket is an array of alternating keys (not their hashes) and
1257412582
; vals.
1257512583
(deftype HashMap [meta count hashobj ^:mutable __hash]
12584+
Object
12585+
(toString [coll]
12586+
(pr-str* coll))
12587+
1257612588
IWithMeta
1257712589
(-with-meta [coll meta] (HashMap. meta count hashobj __hash))
1257812590

@@ -12716,6 +12728,10 @@ reduces them without incurring seq initialization"
1271612728
out)))
1271712729

1271812730
(deftype Set [meta hash-map ^:mutable __hash]
12731+
Object
12732+
(toString [coll]
12733+
(pr-str* coll))
12734+
1271912735
IWithMeta
1272012736
(-with-meta [coll meta] (Set. meta hash-map __hash))
1272112737

0 commit comments

Comments
 (0)