Skip to content

Commit a761d54

Browse files
CLJS-2471: ChunkedSeq should implemented ICounted (#275)
Co-authored-by: Roman Liutikov <roman01la@romanliutikov.com>
1 parent 6cb2c4d commit a761d54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6002,6 +6002,10 @@ reduces them without incurring seq initialization"
60026002
(-empty [coll]
60036003
())
60046004

6005+
ICounted
6006+
(-count [coll]
6007+
(- (-count vec) (+ i off)))
6008+
60056009
IChunkedSeq
60066010
(-chunked-first [coll]
60076011
(array-chunk node off))

0 commit comments

Comments
 (0)