kbox-android / ch.tutteli.kbox / WithIndex

WithIndex

data class WithIndex<out T> (source)

A named pair with index and value.

Constructors

<init>

WithIndex(index: Int, value: T)

A named pair with index and value.

Properties

index

val index: Int

value

val value: T

Extension Functions

glue

infix fun <T> T.glue(otherArgs: Array<out T>): List<T>

Delegates to varargToList -- adds this and the otherArgs into a new List and returns it.