W3cubDocs

/Kotlin

reversed

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
fun <T> Array<out T>.reversed(): List<T>
fun ByteArray.reversed(): List<Byte>
fun ShortArray.reversed(): List<Short>
fun IntArray.reversed(): List<Int>
fun LongArray.reversed(): List<Long>
fun FloatArray.reversed(): List<Float>
fun DoubleArray.reversed(): List<Double>
fun BooleanArray.reversed(): List<Boolean>
fun CharArray.reversed(): List<Char>
fun <T> Iterable<T>.reversed(): List<T>
@ExperimentalUnsignedTypes fun UIntArray.reversed(): List<UInt>
@ExperimentalUnsignedTypes fun ULongArray.reversed(): List<ULong>
@ExperimentalUnsignedTypes fun UByteArray.reversed(): List<UByte>
@ExperimentalUnsignedTypes fun UShortArray.reversed(): List<UShort>

Returns a list with elements 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.html