mirror of
https://github.com/penpot/penpot.git
synced 2026-11-11 12:30:35 +00:00
swap_remove is O(1) vs remove's O(n) when order doesn't matter. These loops iterate backwards, so swap_remove is safe.
swap_remove is O(1) vs remove's O(n) when order doesn't matter. These loops iterate backwards, so swap_remove is safe.