KoneIteratorBuilder

Builder interface for constructing KoneIterator instances via KoneIterator.build.

Type Parameters

Element

The type of elements produced by the iterator builder.

Functions

Link copied to clipboard
abstract suspend fun yield(element: Element)

Yields a single element to the iterator being built.

Link copied to clipboard
abstract suspend fun yieldAll(iterator: KoneIterator<Element>)

Yields all elements from the given iterator to the iterator being built.

Link copied to clipboard

Yields all elements from the given iterable to the iterator being built.

Yields all elements from the given sequence to the iterator being built.