def group_sources
bendvy-ecs-core@0.1.0.4 · restore_graph_raw.bend:24
import bendvy-ecs-core@0.1.0.4/restore_graph_raw.bend as RestoreGraphRaw
import Base
import bendvy-ecs-core@0.1.0.4/entity_key.bend as Key
import bendvy-ecs-core@0.1.0.4/restore_raw.bend as Basic
import bendvy-ecs-core@0.1.0.4/restore_graph_data.bend as Graph
24def group_sources(target:Key.Key,result:Basic.Decoded<List<&2,Key.Key>>) -> Basic.Decoded<Graph.Group>:
25 match result:
26 case Basic.Value{sources}:Basic.Value{Graph.Group{target,sources}}
27 case Basic.Failed{error}:Basic.Failed{error}