def unique

bendvy-ecs-core@0.1.0.3 · execution_query_identity.bend:28

import bendvy-ecs-core@0.1.0.3/execution_query_identity.bend as ExecutionQueryIdentity
import Base
import bendvy-ecs-core@0.1.0.3/world.bend as W
import bendvy-ecs-core@0.1.0.3/execution_state.bend as State

28def unique(~S:Data,handles:List<&2,W.Handle<S>>) -> Bool:
29  match handles:
30    case []:True{}
31    case +head <> +tail:Bool.and(Bool.not(State.member(~S,head,tail)),unique(~S,tail))

Uses (6)

Used by (2)