ResourceField.replacing: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/resource_field.bend as ResourceField Lines 13-15 of bendvy-ecs-core@0.1.0.3/resource_field.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/resource_field.bend&start_line=13&end_line=15 import Base import bendvy-ecs-core@0.1.0.3/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.3/owner_product.bend&name=Lens https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/owner_product.bend&name=put_field