Core API – Kotlin Programming Language (original) (raw)

fill

Fills this array or its subrange with the specified element value.

Since Kotlin

1.3

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.

if fromIndex is less than zero or toIndex is greater than the size of this array.


Fills the list with the provided value.

Each element in the list gets replaced with the value.

Since Kotlin

1.2

Fills this array or its subrange with the specified element value.

Since Kotlin

1.3

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.

if fromIndex is less than zero or toIndex is greater than the size of this array.


Fills the list with the provided value.

Each element in the list gets replaced with the value.

Since Kotlin

1.2

Fills this array or its subrange with the specified element value.

Since Kotlin

1.0

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.

if fromIndex is less than zero or toIndex is greater than the size of this array.


Fills the list with the provided value.

Each element in the list gets replaced with the value.

Since Kotlin

1.2

Fills this array or its subrange with the specified element value.

Since Kotlin

1.3

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.

if fromIndex is less than zero or toIndex is greater than the size of this array.


Fills the list with the provided value.

Each element in the list gets replaced with the value.

Since Kotlin

1.3

Fills this array or its subrange with the specified element value.

Since Kotlin

1.8

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.

if fromIndex is less than zero or toIndex is greater than the size of this array.


Fills the list with the provided value.

Each element in the list gets replaced with the value.

Since Kotlin

1.8

Fills this array or its subrange with the specified element value.

Since Kotlin

1.8

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.

if fromIndex is less than zero or toIndex is greater than the size of this array.


Fills the list with the provided value.

Each element in the list gets replaced with the value.

Since Kotlin

1.8