fn replaceRange(self: *Self, allocator: Allocator, start: usize, len: usize, new_items: []const T) Allocator.Error!void

Replace range of elements list[start..][0..len] with new_items Grows list if len < new_items.len. Shrinks list if len > new_items.len Invalidates pointers if this ArrayList is resized.

Parameters

self: *Self,
allocator: Allocator,
start: usize,
len: usize,
new_items: []const T,