array.fill

Sets the elements from index_from (default 0) up to, not including, index_to (default: the size) to the value.

array.fill(id: array<any>, value: element type, index_from: int = 0, index_to: int = na)

Parameters

Example

a.fill(0.0)