RecoverableArrayOwner.bounded: 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 33-36 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=33&end_line=36 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 bounded(~State:Type,~P:Type,~Rest:Type,~lens:Product.Lens,Rest>,~Recovery:Type,~ReleasedRest:Type,~release:Product.Lens>,ReleasedRest>,valid:Bool,rest:Rest,array:Array

,journal:List,+index:U32,replacement:P) -> Attempt: match valid: case False{}:Refused{Product.put_field(~State,~Array

,~Rest,lens)(rest,array),journal,replacement} case True{}:applied(~State,~Recovery,~P,swapped(~State,~P,~Rest,~lens,~Recovery,~ReleasedRest,~release,rest,index,journal,Array.swap(P,array,index,replacement))) Uses (12): 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=List 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=Attempt https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/recoverable_array_owner.bend&name=applied https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/recoverable_array_owner.bend&name=swapped https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/recovery_journal.bend&name=Action