pub fn orderedRemove(self: *Self, i: usize) T self: *Selfi: usize1052
1053
1054
1055
1056 pub fn orderedRemove(self: *Self, i: usize) T {
const old_item = self.items[i];
self.replaceRangeAssumeCapacity(i, 1, &.{});
return old_item;
}
Remove the element at index
ifrom the list and return its value. Invalidates pointers to the last element. This operation is O(N). Asserts that the index is in bounds.