Bind KotlinIterator via stdlib extern class
This commit is contained in:
1 parent
6295cea6ad
commit
d8d2eff436
3 files changed
+43
-15
No files matched your search
@@ -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> {
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user