fn insertAssumeCapacity(self: *Self, n: usize, item: T) 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). Asserts that there is enough capacity for the new item.

Parameters

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