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)

Reverses elements in the list in-place.

Since Kotlin

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

Reverses elements in the list in-place.

Since Kotlin

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

Reverses elements in the list in-place.

Since Kotlin

1.0