Product SiteDocumentation Site

5.3.6.15. fill


>>-fill(value)-------------------------------------------------><

Sets all index locations of the array to value.

Example 5.139. Array class - fill method

a = .array~new(3,3)
a~fill(0)    -- initialize the matrix to all zeroes.