reverse

fun <T> Array<T>.reverse()(source)

Reverses elements in the array in-place.

Since Kotlin

1.0

expect fun <T> MutableList<T>.reverse()(source)(source)
actual fun <T> MutableList<T>.reverse()(source)(source)

Reverses elements in the list in-place.

Since Kotlin

1.0