mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +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.