reverse

abstract fun reverse(fromIndex: Int, toIndex: Int)

反转此数组指定范围内的元素顺序.

参考 kotlin.collections.reverse

Parameters

fromIndex

要反转的范围的起始索引(包括)

toIndex

要反转的范围的结束索引(不包括)