IndexedValue

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

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

Constructors

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

Properties

Link copied to clipboard
val index: Int

the index of the value in the collection or sequence.

Link copied to clipboard
val value: T

the underlying value.