TraceRelation.reorder: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/trace_relation.bend as TraceRelation Lines 48-51 of bendvy-ecs-core@0.1.0.4/trace_relation.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/trace_relation.bend&start_line=48&end_line=51 import Base import bendvy-ecs-core@0.1.0.4/trace_facts.bend as Facts import bendvy-ecs-core@0.1.0.4/relation_types.bend as G import bendvy-ecs-core@0.1.0.4/world.bend as W def reorder(~S:Data,state:Facts.State,descriptor:G.Descriptor,operation:Facts.Operation,parent:W.Handle,children:List<&2,W.Handle>,result:Facts.FactResult) -> Facts.State: match state: case Facts.Off{}:Facts.Off{} case Facts.On{facts}:Facts.On{Facts.RelationFact{identity(~S,descriptor),operation,handle(~S,parent),Facts.ReorderAction{handles(~S,children)},result} <> facts} Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_types.bend&name=Descriptor https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=Fact https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=FactResult https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=Operation https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=RelationAction https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=State https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_relation.bend&name=handle https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_relation.bend&name=handles https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_relation.bend&name=identity https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=Handle