def w.lead

bend-kit-json@0.7.0.0 · json.bend:1040

import bend-kit-json@0.7.0.0/json.bend as Json
import 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)

Uses (4)

Used by (1)