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
idarray<any>: The array; na stops the script with a runtime error.valueelement type: a value of the array element typeindex_fromint: First position set (default 0); negative counts from the end.index_toint: Position after the last one set (default: the size); at or before index_from sets nothing.
Example
a.fill(0.0)