RecoverableArrayOwner.swapped: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/recoverable_array_owner.bend as RecoverableArrayOwner Lines 27-29 of bendvy-ecs-core@0.1.0.4/recoverable_array_owner.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/recoverable_array_owner.bend&start_line=27&end_line=29 import Base import bendvy-ecs-core@0.1.0.4/owner_product.bend as Product import bendvy-ecs-core@0.1.0.4/recoverable_array.bend as A import bendvy-ecs-core@0.1.0.4/recovery_journal.bend as Journal def swapped(~State:Type,~P:Type,~Rest:Type,~lens:Product.Lens,Rest>,~Recovery:Type,~ReleasedRest:Type,~release:Product.Lens>,ReleasedRest>,rest:Rest,+index:U32,journal:List,result:Array

& P) -> State & List: match result: case (array,old):record(~State,~P,~Rest,~lens,~Recovery,~ReleasedRest,~release,Product.put_field(~State,~Array

,~Rest,lens)(rest,array),journal,A.Swapped{index,old}) 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=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=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/owner_product.bend&name=Lens https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/owner_product.bend&name=put_field https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/recoverable_array.bend&name=Record https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/recoverable_array_owner.bend&name=record https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/recovery_journal.bend&name=Action