fn swapRemove(self: *Self, i: usize) T

Removes the element at the specified index and returns it. The empty slot is filled from the end of the list. Invalidates pointers to last element. This operation is O(1).

Parameters

self: *Self,
i: usize,