Column.indexed_swap_checked: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/column.bend as Column Lines 93-96 of bendvy-ecs-core@0.1.0.4/column.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/column.bend&start_line=93&end_line=96 import Base import indexed_lifecycle.bend as M def indexed_swap_checked(~S:Data,~C:Type,+id:U32,incoming:Maybe<&1,C>,metadata:M.Metadata,values:Array>,valid:Bool) -> SwapOutcome: match valid: case False{}: Rejected{indexed_wrap(~S,~C,values,metadata),incoming} case True{}: indexed_swapped(~S,~C,metadata,Array.swap(Maybe<&1,C>,values,U32.sub(id,1),incoming)) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.swap https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 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/column.bend&name=SwapOutcome https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/column.bend&name=indexed_swapped https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/column.bend&name=indexed_wrap https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/indexed_lifecycle.bend&name=Metadata