Bind KotlinIterator via stdlib extern class

This commit is contained in:
sergeych committed 2026-02-15 01:37:40 +03:00
1 parent 6295cea6ad
commit d8d2eff436
3 files changed
+43 -15

No files matched your search

+6
View File
@@ -21,6 +21,12 @@ extern class Iterator<T> {
fun toList(): List<T>
}
// Host-provided iterator wrapper for Kotlin collections.
class KotlinIterator<T> : Iterator<T> {
extern override fun hasNext(): Bool
extern override fun next(): T
}
extern class Collection<T> : Iterable<T> {
}