RestoreGraphSave.groups: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/restore_graph_save.bend as RestoreGraphSave Lines 17-20 of bendvy-ecs-core@0.1.0.4/restore_graph_save.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/restore_graph_save.bend&start_line=17&end_line=20 import Base import bendvy-ecs-core@0.1.0.4/restore_graph_data.bend as R import bendvy-ecs-core@0.1.0.4/relation_types.bend as G import bendvy-ecs-core@0.1.0.4/relation_graph.bend as Graph def groups(~S:Data,entries:List<&2,G.Inverse>,+descriptor:G.Descriptor) -> List<&2,R.Group>: match entries: case []:[] case G.Inverse{other,target,sources} <> rest:included(U32.is_eq(Graph.key(~S,descriptor),Graph.key(~S,other)),target,sources,groups(~S,rest,descriptor)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_graph.bend&name=key 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/relation_types.bend&name=Inverse https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_graph_data.bend&name=Group https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_graph_save.bend&name=included