OrdinaryConditionDeclaration.selected: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/ordinary_condition_declaration.bend as OrdinaryConditionDeclaration Lines 47-50 of bendvy-ecs-core@0.1.0.4/ordinary_condition_declaration.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_condition_declaration.bend&start_line=47&end_line=50 import Base import bendvy-ecs-core@0.1.0.4/world.bend as W def selected(~S:Data,~C:Type,~R:Type,~E:Data,chosen:Bool,left:W.World -> U32 -> W.World & Bool,right:W.World -> U32 -> W.World & Bool,world:W.World,slot:U32,offset:Nat) -> W.World & Bool: match chosen: case True{}:left(world,slot) case False{}:right(world,(slot - U32.from_nat(offset) : U32)) 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=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World