def group

bendvy-ecs-core@0.1.0.4 · restore_graph_raw.bend:33

import bendvy-ecs-core@0.1.0.4/restore_graph_raw.bend as RestoreGraphRaw
import Base
import bendvy-ecs-core@0.1.0.4/decode_data.bend as D
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

33def group(+path:String,raw:D.Raw) -> Basic.Decoded<Graph.Group>:
34  match raw:
35    case D.Array{[target,sources]}:group_target(path ++ "[1]",sources,Basic.key(path ++ "[0]",target))
36    case other:Basic.invalid(~Graph.Group,path,"target/sources pair",other)

Uses (9)

Used by (1)