reverse

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

反转此数组中指定范围内的元素。 范围由 fromIndex(包括)和 toIndex(不包括)定义。

参考 kotlin.collections.reverse

Parameters

fromIndex

范围的起始索引(包括)。

toIndex

范围的结束索引(不包括)。