ClockState.ensured: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/clock_state.bend as ClockState Lines 73-77 of bendvy-ecs-core@0.1.0.3/clock_state.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/clock_state.bend&start_line=73&end_line=77 import Base import bendvy-ecs-core@0.1.0.3/change_tick.bend as Tick # Lower query execution reuses an admitted scope, opening one only when direct. def ensured(+tick:Tick.Tick,scopes:List<&2,Tick.Tick>) -> State & Bool: match scopes: case []:(State{Tick.next(tick),[Tick.next(tick)]},True{}) case active <> rest:(State{tick,active <> rest},False{}) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/change_tick.bend&name=Tick https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/change_tick.bend&name=next https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/clock_state.bend&name=State