fun <T> Array<T>.copyOfRange( fromIndex: Int, toIndex: Int ): Array<T>
@JvmName("copyOfRangeInline") fun <T> Array<T>.copyOfRange( fromIndex: Int, toIndex: Int ): Array<T>
fun <T> Array<out T>.copyOfRange( fromIndex: Int, toIndex: Int ): Array<T>
fun ByteArray.copyOfRange( fromIndex: Int, toIndex: Int ): ByteArray
@JvmName("copyOfRangeInline") fun ByteArray.copyOfRange( fromIndex: Int, toIndex: Int ): ByteArray
fun ShortArray.copyOfRange( fromIndex: Int, toIndex: Int ): ShortArray
@JvmName("copyOfRangeInline") fun ShortArray.copyOfRange( fromIndex: Int, toIndex: Int ): ShortArray
fun IntArray.copyOfRange( fromIndex: Int, toIndex: Int ): IntArray
@JvmName("copyOfRangeInline") fun IntArray.copyOfRange( fromIndex: Int, toIndex: Int ): IntArray
fun LongArray.copyOfRange( fromIndex: Int, toIndex: Int ): LongArray
@JvmName("copyOfRangeInline") fun LongArray.copyOfRange( fromIndex: Int, toIndex: Int ): LongArray
fun FloatArray.copyOfRange( fromIndex: Int, toIndex: Int ): FloatArray
@JvmName("copyOfRangeInline") fun FloatArray.copyOfRange( fromIndex: Int, toIndex: Int ): FloatArray
fun DoubleArray.copyOfRange( fromIndex: Int, toIndex: Int ): DoubleArray
@JvmName("copyOfRangeInline") fun DoubleArray.copyOfRange( fromIndex: Int, toIndex: Int ): DoubleArray
fun BooleanArray.copyOfRange( fromIndex: Int, toIndex: Int ): BooleanArray
@JvmName("copyOfRangeInline") fun BooleanArray.copyOfRange( fromIndex: Int, toIndex: Int ): BooleanArray
fun CharArray.copyOfRange( fromIndex: Int, toIndex: Int ): CharArray
@JvmName("copyOfRangeInline") fun CharArray.copyOfRange( fromIndex: Int, toIndex: Int ): CharArray
Returns a new array which is a copy of the specified range of the original array.
fromIndex
- the start of the range (inclusive) to copy.
toIndex
- the end of the range (exclusive) to copy.
IndexOutOfBoundsException
- if fromIndex is less than zero or toIndex is greater than the size of this array.
IllegalArgumentException
- if fromIndex is greater than toIndex.
@ExperimentalUnsignedTypes fun UIntArray.copyOfRange( fromIndex: Int, toIndex: Int ): UIntArray
@ExperimentalUnsignedTypes fun ULongArray.copyOfRange( fromIndex: Int, toIndex: Int ): ULongArray
@ExperimentalUnsignedTypes fun UByteArray.copyOfRange( fromIndex: Int, toIndex: Int ): UByteArray
@ExperimentalUnsignedTypes fun UShortArray.copyOfRange( fromIndex: Int, toIndex: Int ): UShortArray
Returns a new array which is a copy of the specified range of the original array.
fromIndex
- the start of the range (inclusive) to copy.
toIndex
- the end of the range (exclusive) to copy.
IndexOutOfBoundsException
- if fromIndex is less than zero or toIndex is greater than the size of this array.
IllegalArgumentException
- if fromIndex is greater than toIndex.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/copy-of-range.html