sliceArray

fun <T> Array<T>.sliceArray(
    indices: Collection<Int>
): Array<T>
(source)
fun ByteArray.sliceArray(indices: Collection<Int>): ByteArray (source)
fun ShortArray.sliceArray(
    indices: Collection<Int>
): ShortArray
(source)
fun IntArray.sliceArray(indices: Collection<Int>): IntArray (source)
fun LongArray.sliceArray(indices: Collection<Int>): LongArray (source)
fun FloatArray.sliceArray(
    indices: Collection<Int>
): FloatArray
(source)
fun DoubleArray.sliceArray(
    indices: Collection<Int>
): DoubleArray
(source)
fun BooleanArray.sliceArray(
    indices: Collection<Int>
): BooleanArray
(source)
fun CharArray.sliceArray(indices: Collection<Int>): CharArray (source)

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

fun <T> Array<T>.sliceArray(indices: IntRange): Array<T> (source)
fun ByteArray.sliceArray(indices: IntRange): ByteArray (source)
fun ShortArray.sliceArray(indices: IntRange): ShortArray (source)
fun IntArray.sliceArray(indices: IntRange): IntArray (source)
fun LongArray.sliceArray(indices: IntRange): LongArray (source)
fun FloatArray.sliceArray(indices: IntRange): FloatArray (source)
fun DoubleArray.sliceArray(indices: IntRange): DoubleArray (source)
fun BooleanArray.sliceArray(indices: IntRange): BooleanArray (source)
fun CharArray.sliceArray(indices: IntRange): CharArray (source)

Returns a list containing elements at indices in the specified indices range.