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. This operation is O(1). This may not preserve item order. Use orderedRemove if you need to preserve order.

Parameters

self: *Self,
i: usize,