def abandon_pending_kept
import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as EntityAllocatorimport Base
import entity_key.bend as K
116# Restore cancellation consumes queued reservations without freeing their IDs.
117def abandon_pending_kept(+key:K.Key,observed:Allocator & List<&2,K.Key>) -> Allocator & List<&2,K.Key>:
118 match observed:
119 case (allocator,keys):(allocator,key <> keys)