Generator

external class Generator<out T, TReturn, in TNext> : JsIterator<T> (source)

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
open override fun next(): IteratorResult<T, TReturn>
Link copied to clipboard
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
Link copied to clipboard
fun <T> JsIterator<T>.toList(): List<T>
Link copied to clipboard
fun <T> JsIterator<T>.toSet(): Set<T>