IndexedElement
IndexedElement
<struct>
Indexed element type: representing a value from a list, along with its index in that list. It is used in conjunction with library function withIndex
.
Type Arguments
T - the element type
Arguments
index - Number
element - T
Usage
IndexedElement<Text>(index = 0, element = "item")
listOf("item").withIndex() == listOf(IndexedElement<Text>(0, "item"))