def parse_batch
import qasim-bend-kit@0.1.0.2/libs/JSON.bend as JSONimport Base
1227def parse_batch(batch: Batch) -> BatchResult:
1228 match batch:
1229 case Document{text}:
1230 DocumentResult{parse(text)}
1231 case Documents{left, right}:
1232 l r = parse_batch(left) parse_batch(right)
1233 DocumentResults{l, r}