def without

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

import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as EntityAllocator
import Base
import entity_key.bend as K

57def without(keys:List<&2,K.Key>,+key:K.Key) -> List<&2,K.Key>:
58  match keys:
59    case []:[]
60    case +head <> rest:keep(K.equal(head,key),head,without(rest,key))

Uses (4)

Used by (2)