def keep
import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as EntityAllocatorimport Base
import entity_key.bend as K
52def keep(same:Bool,head:K.Key,rest:List<&2,K.Key>) -> List<&2,K.Key>:
53 match same:
54 case True{}:rest
55 case False{}:head <> rest