abstract class SequenceBuilder<in T>
Builder for a Sequence or an Iterator, provides yield and yieldAll suspension functions.
Since Kotlin 1.3 use kotlin.sequences.SequenceScope instead.
See Also
Yields a value to the Iterator being built.
abstract suspend fun yield(value: T)
Yields all values from the iterator
to the Iterator being built.
abstract suspend fun yieldAll(iterator: Iterator<T>)
Yields a collections of values to the Iterator being built.
suspend fun yieldAll(elements: Iterable<T>)
Yields potentially infinite sequence of values to the Iterator being built.
suspend fun yieldAll(sequence: Sequence<T>)
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.coroutines.experimental/-sequence-builder/index.html