fill (original) (raw)

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

Since Kotlin

1.3

Parameters

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

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

Parameters

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

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

Parameters

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

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

Parameters

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

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

Parameters

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

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

Parameters

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

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