IntIndexed
An Indexed value whose index is an Int, comparable to other IntIndexed values by index. This is the type produced by Sequence.indexed, the "counted" counterpart of kotlin.collections.withIndex used throughout the codebase whenever a position needs to travel along with a value through further transformations (e.g. .map { it.map(...) }), which a plain IndexedValue/destructured pair would not allow as conveniently.
Type Parameters
T
is the type of the indexed value
Properties
Functions
Link copied to clipboard
Compares two IntIndexed values by their index, ignoring value.
Link copied to clipboard
Destructuring component corresponding to index.
Link copied to clipboard
Destructuring component corresponding to value.