IndexedValue

data class IndexedValue<out T>(index: Int, value: T)

Data class representing a value from a collection or sequence, along with its index in that collection or sequence.

Constructors

IndexedValue
Link copied to clipboard
fun <out T> IndexedValue(index: Int, value: T)

Properties

index
Link copied to clipboard
val index: Int

the index of the value in the collection or sequence.

value
Link copied to clipboard
val value: T

the underlying value.