def after.arr.c
import bend-net-json@0.3.0.0/json.bend as Jsonimport Base
294# A finished value joins its container; then "," or the closing bracket.
295def after.arr.c(comma: Bool, close: Bool, t: String, xs: List<&2, Val>, up: List<&2, Open>) -> St:
296 match comma:
297 case True{}:
298 SValue{t, Con{OArr{xs}, up}}
299 case False{}:
300 match close:
301 case True{}:
302 SAfter{Arr{List.reverse(&2, Val, xs)}, t, up}
303 case False{}:
304 SFail{}