fn insert(self: *Self, n: usize, item: T) Allocator.Error!void

Insert item at index n. Moves list[n .. list.len] to higher indices to make room. If n is equal to the length of the list this operation is equivalent to append. This operation is O(N). Invalidates pointers if additional memory is needed.

Parameters

self: *Self,
n: usize,
item: T,