build
fun <Element> KoneSequence.Companion.build(builder: suspend KoneIteratorBuilder<Element>.() -> Unit): KoneSequence<Element>(source)
Builds a KoneSequence using the provided coroutine-based builder function.
Return
A new KoneSequence instance.
Parameters
builder
The suspending builder function that yields elements.
Type Parameters
Element
The type of elements.