fill

abstract fun fill(element: PT, fromIndex: Int = 0, toIndex: Int)

用给定的元素填充此数组的指定范围.

参考 kotlin.collections.fill

Parameters

element

用于填充数组的元素

fromIndex

要填充的范围的起始索引(包括)

toIndex

要填充的范围的结束索引(不包括)