JsIterator

abstract external class JsIterator<out T> : JsIteratorLike<T> , JsIterable<T> (source)

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun drop(n: Int): JsIterator<T>
Link copied to clipboard
fun every(predicate: (T) -> Boolean): Boolean
Link copied to clipboard
fun filter(predicate: (T) -> Boolean): JsIterator<T>
Link copied to clipboard
fun find(predicate: (T) -> Boolean): T?
Link copied to clipboard
fun <R> flatMap(transform: (T) -> JsIterable<R>): JsIterator<R>
fun <R> flatMap(transform: (T) -> ReadonlyArray<R>): JsIterator<R>
Link copied to clipboard
fun forEach(action: (item: T) -> Unit)
Link copied to clipboard
open operator fun get(key: Symbol.iterator): () -> JsIterator<T>
Link copied to clipboard
open inline operator override fun iterator(): Iterator<T>
Link copied to clipboard
fun <R> map(transform: (T) -> R): JsIterator<R>
Link copied to clipboard
abstract fun next(): IteratorResult<T, *>
Link copied to clipboard
fun some(predicate: (T) -> Boolean): Boolean
Link copied to clipboard
fun take(n: Int): JsIterator<T>
Link copied to clipboard
Link copied to clipboard
fun <T> JsIterator<T>.toList(): List<T>
Link copied to clipboard
fun <T> JsIterator<T>.toSet(): Set<T>