def parse_batch

qasim-bend-kit@0.1.0.2 · libs/JSON.bend:1227

import qasim-bend-kit@0.1.0.2/libs/JSON.bend as JSON
import 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}

Uses (3)

Used by (3)