Product Site

5.3.6.13. fill

Returns the receiving Array with all index locations set to value.
Example 5.172. Array class — fill method
a = .array~new(3,3)
a~fill(0)    -- initialize the matrix to all zeroes.