def items.arr
import bend-net-json@0.3.0.0/json.bend as Jsonimport Base
464def items.arr(xs: List<&2, Val>, first: Bool, rest: List<&2, Item>) -> List<&2, Item>:
465 match xs:
466 case Nil{}:
467 Con{ILit{"]"}, rest}
468 case Con{x, t}:
469 items.sep(first, Con{IVal{x}, items.arr(t, False{}, rest)})