W3cubDocs

/Kotlin

reversedArray

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
fun <T> Array<T>.reversedArray(): Array<T>
fun ByteArray.reversedArray(): ByteArray
fun ShortArray.reversedArray(): ShortArray
fun IntArray.reversedArray(): IntArray
fun LongArray.reversedArray(): LongArray
fun FloatArray.reversedArray(): FloatArray
fun DoubleArray.reversedArray(): DoubleArray
fun BooleanArray.reversedArray(): BooleanArray
fun CharArray.reversedArray(): CharArray
@ExperimentalUnsignedTypes fun UIntArray.reversedArray(): UIntArray
@ExperimentalUnsignedTypes fun ULongArray.reversedArray(): ULongArray
@ExperimentalUnsignedTypes fun UByteArray.reversedArray(): UByteArray
@ExperimentalUnsignedTypes fun UShortArray.reversedArray(): UShortArray

Returns an array with elements of this array in reversed order.

© 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/reversed-array.html