def w.lead
import bend-kit-json@0.7.0.0/json.bend as Jsonimport Base
1040# open: the container's first byte comes next; else a comma or its last byte.
1041def w.lead(open: Bool, +c: U32, o: W) -> W:
1042 match open:
1043 case True{}:
1044 w.put(o, c)
1045 case False{}:
1046 w.put(o, 44)