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), must be in 0..array.size
toIndex
- the end of the range (exclusive), must be in fromIndex..array.size
@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), must be in 0..array.size
toIndex
- the end of the range (exclusive), must be in fromIndex..array.size
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/copy-of-range.html