OrdinaryResourceFieldSystem.write: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/ordinary_resource_field_system.bend as OrdinaryResourceFieldSystem Lines 52-56 of bendvy-ecs-core@0.1.0.4/ordinary_resource_field_system.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_resource_field_system.bend&start_line=52&end_line=56 import Base import bendvy-ecs-core@0.1.0.4/resource_field_binding.bend as B import bendvy-ecs-core@0.1.0.4/resource_field.bend as Field import bendvy-ecs-core@0.1.0.4/ordinary_schema.bend as Schema import bendvy-ecs-core@0.1.0.4/ordinary_query_declaration.bend as Q import bendvy-ecs-core@0.1.0.4/owner_product.bend as Product import bendvy-ecs-core@0.1.0.4/world.bend as W import bendvy-ecs-core@0.1.0.4/transaction.bend as T # Build a selected-P replacement declaration with canonical binding identity. # Ordinary inverse journaling restores old P on failure; successful setters consume # replacement P without returning displaced payloads as a recovery receipt. def write(~S:Data,~C:Type,~R:Type,~E:Data,~P:Type,~Rest:Type,~V:Data,~lens:Product.Lens,~identity:Schema.Resource,~binding:B.Binding,~view:P -> P & V) -> Declaration,E>,Write,E>,V>>: Declaration{Write{Field.write(~S,~C,~R,~E,~P,~Rest,~V,~lens,~view)},[Q.Clause{Schema.resource_key(~S,~P,identity),Q.Write{}}]} Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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.4/ordinary_query_declaration.bend&name=Clause https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_query_declaration.bend&name=Mode https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_resource_field_system.bend&name=Declaration https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_resource_field_system.bend&name=Write https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_schema.bend&name=Resource https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_schema.bend&name=resource_key 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/resource_field.bend&name=write https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/resource_field_binding.bend&name=Binding https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/transaction.bend&name=Tx https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World