def keep

bendvy-ecs-core@0.1.0.3 · entity_allocator.bend:52

import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as EntityAllocator
import 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

Uses (3)

Used by (3)