ResourceField.replacing: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/resource_field.bend as ResourceField Lines 18-20 of bendvy-ecs-core@0.1.0.4/resource_field.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/resource_field.bend&start_line=18&end_line=20 import Base import bendvy-ecs-core@0.1.0.4/owner_product.bend as Product def replacing(~R:Type,~P:Type,~Rest:Type,~lens:Product.Lens,replacement:P,result:Rest & P) -> R & P: match result: case (rest,old):(Product.put_field(~R,~P,~Rest,lens)(rest,replacement),old) Uses (4): 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.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