def present_choice

bendvy-ecs-core@0.1.0.4 · ordinary_dump_eligibility.bend:6

import bendvy-ecs-core@0.1.0.4/ordinary_dump_eligibility.bend as OrdinaryDumpEligibility
import Base
import bendvy-ecs-core@0.1.0.4/ordinary_dump_filter.bend as Filter

6# Presence derives from the ordinary count traversal on one actual alive handle.
7def present_choice(~S:Data,key:String,tail:List<&2,Filter.Value>,absent:Bool) -> List<&2,Filter.Value>:
8  match absent:
9    case True{}:tail
10    case False{}:Filter.Value{key,""} <> tail

Uses (4)

Used by (1)