makeFilledArray

Creates new array with specified content.

T[]
makeFilledArray
(
T
)
(
size_t len
,)

Examples

assert(makeFilledArray(4, 5) == [5, 5, 5, 5]);
assert(makeFilledArray(10, ' ') == "          ");

Meta