sliceArray

fun <T> Array<T>.sliceArray(indices: Collection<Int>): Array<T>(source)

Returns an array containing elements of this array at specified indices.

Since Kotlin

1.0

fun <T> Array<T>.sliceArray(indices: IntRange): Array<T>(source)

Returns an array containing elements at indices in the specified indices range.

Since Kotlin

1.0