ResourceField.replace: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/resource_field.bend as ResourceField Lines 16-17 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=16&end_line=17 import Base import bendvy-ecs-core@0.1.0.3/owner_product.bend as Product def replace(~R:Type,~P:Type,~Rest:Type,~lens:Product.Lens,replacement:P,resource:R) -> R & P: replacing(~R,~P,~Rest,~lens,replacement,Product.get_field(~R,~P,~Rest,lens)(resource)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair 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=get_field https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/resource_field.bend&name=replacing