Package-level declarations

Types

Link copied to clipboard

Represents a KoneIterator that can add element right after its pointer.

Link copied to clipboard
interface KoneIterator<out Element>

Represents an iterator over some elements (maybe even infinite number of elements) in some (maybe temporary) order.

Link copied to clipboard

Builder interface for constructing KoneIterator instances via KoneIterator.build.

Link copied to clipboard

Represents a KoneReversibleIterator over some collection of elements that has permanent order on the elements and permanent indices of the elements.

Link copied to clipboard

Represents a KoneIterator that can add, set, and remove the next element.

Link copied to clipboard

Represents a KoneIterator that can remove the next element if it's present.

Link copied to clipboard

Represents a KoneReversibleIterator that can add element right after and right before its pointer.

Link copied to clipboard

Represents an KoneIterator that can iterate over the elements in both directions, forward and backward.

Link copied to clipboard

Represents a KoneReversibleIterator that can remove the next and the previous elements if they're present.

Link copied to clipboard

Represents a KoneReversibleIterator that can change value of the next element and the previous element if they're present.

Link copied to clipboard

Represents a KoneIterator that can change value of the next element if it's present.

Functions

Link copied to clipboard

Builds a KoneIterator using the provided coroutine-based builder function.

Link copied to clipboard
Link copied to clipboard

Gets the next element in this iterator, moves forward, and returns the got element.

Link copied to clipboard

Gets the previous element, moves backward, and returns the got element.

Link copied to clipboard
inline operator fun <Element> KoneIterator<Element>.next(): Element

Gets the next element moves forward and returns the got element. It is an operator function to use in for cycles.

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.