core :: Array :: filled_with
count
# Create an array of `count` elements init filled_with(value: E, count: Int) do assert positive: count >= 0 _items = new NativeArray[E](count) _capacity = count _length = count var i = 0 while i < count do self[i] = value i += 1 end end