ResourceField.viewed: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/resource_field.bend as ResourceField Lines 4-7 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=4&end_line=7 import Base import bendvy-ecs-core@0.1.0.3/owner_product.bend as Product # Canonical product lenses preserve affine siblings during selected-field operations. def viewed(~R:Type,~P:Type,~Rest:Type,~V:Data,~lens:Product.Lens,rest:Rest,result:P & V) -> R & V: match result: case (part,value):(Product.put_field(~R,~P,~Rest,lens)(rest,part),value) 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