{"id":"remove-element-uses-stable-compaction","text":"`removeElement` preserves the relative order of retained elements; it does not use the swap-to-end optimization (which would be unstable).","truth_value":"IN","source":"entries/2026/06/06/remove-element-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"remove-element-uses-stable-compaction","truth_value":"IN","reason":"premise"}]}}