fill
Fills the list with the provided value.
Each element in the list gets replaced with the value.
Since Kotlin
1.2Fills this array or its subrange with the specified element value.
Since Kotlin
1.0Parameters
fromIndex
the start of the range (inclusive) to fill, 0 by default.
toIndex
the end of the range (exclusive) to fill, size of this array by default.
Throws
Fills the list with the provided value.
Each element in the list gets replaced with the value.