def end_field

cswap-bend-cli@0.1.0.0 · fmt/csv.bend:76

import cswap-bend-cli@0.1.0.0/fmt/csv.bend as Csv
import Base

76# The field in progress ends; the next field starts in `m`.
77def end_field(+st: St, m: Mode) -> St:
78  match st:
79    case St{rows, row, cur, mode, err}:
80      St{rows, String.reverse(cur) <> row, "", m, err}

Uses (4)

Used by (4)