RelationGraph.inverse_add_found_erased: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/relation_graph.bend as RelationGraph Lines 84-87 of bendvy-ecs-core@0.1.0.3/relation_graph.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/relation_graph.bend&start_line=84&end_line=87 import Base import entity_key.bend as K import relation_types.bend as T def inverse_add_found_erased(-S: Data,found: Bool,other: T.Descriptor,id: K.Key,+sources: List<&2,K.Key>,+descriptor: T.Descriptor,target: K.Key,+source: K.Key,rest: List<&2,T.Inverse>,next: Unit -> List<&2,T.Inverse>) -> List<&2,T.Inverse>: match found: case True{}: T.Inverse{other,id,appended_source(contains(sources,source),sources,source)} <> rest case False{}: T.Inverse{other,id,sources} <> next(Unit{}) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/entity_key.bend&name=Key https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_graph.bend&name=appended_source https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_graph.bend&name=contains https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_types.bend&name=Descriptor https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_types.bend&name=Inverse