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()
fun UIntArray.reverse()
fun ULongArray.reverse()
fun UByteArray.reverse()
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.