def with_weight
import bend-visgraph@2.0.0.0/bend_visgraph.bend as BendVisgraphimport Base
import bend-visgraph@2.0.0.0/visgraph.bend as VG
104def with_weight(found: Maybe<&2, VG.Weight>, name: String, value: String, o: String, x: String, g: VG.Visibility, d: VG.Direction, l: U32, m: Mode) -> Config:
105 match found:
106 case Some{k}:
107 Config{o, x, g, d, k, l, m}
108 case None{}:
109 bad(name, value)