kotlin.collections.indices

indices

val Collection<*>.indices: IntRange

Returns an IntRange of the valid indices for this collection.

val <T> Array<out T>.indices: IntRange
val ByteArray.indices: IntRange
val ShortArray.indices: IntRange
val IntArray.indices: IntRange
val LongArray.indices: Int