fn resize(self: *Self, new_len: usize) Allocator.Error!void
Adjust the list’s length to new_len. Does not initialize added items if any. Invalidates pointers if additional memory is needed.
new_len
self: *Self,
new_len: usize,