reverse

Common
JVM
JS
Native
1.0
fun <T> Array<T>.reverse()
fun ByteArray.reverse()
fun ShortArray.reverse()
fun IntArray.reverse()
fun LongArray.reverse()
fun FloatArray.reverse()
fun DoubleArray.reverse()
fun BooleanArray.reverse()
fun CharArray.reverse()
@ExperimentalUnsignedTypes fun UIntArray.reverse()
@ExperimentalUnsignedTypes fun ULongArray.reverse()
@ExperimentalUnsignedTypes fun UByteArray.reverse()
@ExperimentalUnsignedTypes fun UShortArray.reverse()

Reverses elements in the array in-place.

Common
JVM
JS
Native
1.0
fun <T> MutableList<T>.reverse()

Reverses elements in the list in-place.