slice
fun ShortArray.slice(indices: IntRange): List<Short>
fun FloatArray.slice(indices: IntRange): List<Float>
fun DoubleArray.slice(indices: IntRange): List<Double>
fun BooleanArray.slice(indices: IntRange): List<Boolean>
@ExperimentalUnsignedTypes fun ULongArray.slice(
indices: IntRange
): List<ULong>
@ExperimentalUnsignedTypes fun UByteArray.slice(
indices: IntRange
): List<UByte>
@ExperimentalUnsignedTypes fun UShortArray.slice(
indices: IntRange
): List<UShort>
Returns a list containing elements at indices in the specified indices range.
fun ShortArray.slice(indices: Iterable<Int>): List<Short>
fun FloatArray.slice(indices: Iterable<Int>): List<Float>
fun DoubleArray.slice(indices: Iterable<Int>): List<Double>
fun BooleanArray.slice(indices: Iterable<Int>): List<Boolean>
@ExperimentalUnsignedTypes fun ULongArray.slice(
indices: Iterable<Int>
): List<ULong>
@ExperimentalUnsignedTypes fun UByteArray.slice(
indices: Iterable<Int>
): List<UByte>
@ExperimentalUnsignedTypes fun UShortArray.slice(
indices: Iterable<Int>
): List<UShort>
Returns a list containing elements at specified indices.