IndexedValue

Common
JVM
JS
Native
1.0
data class IndexedValue<out T>
(source)

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

Constructors

Common
JVM
JS
Native
1.0

<init>

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

IndexedValue(index: Int, value: T)

Properties

Common
JVM
JS
Native
1.0

index

the index of the value in the collection or sequence.

val index: Int
Common
JVM
JS
Native
1.0

value

the underlying value.

val value: T