def at_start

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

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

114def at_start(+c: U32, +st: St) -> St:
115  sel.st(U32.is_eq(c, 34), with_mode(st, MQuoted{}),
116  sel.st(U32.is_eq(c, 44), end_field(st, MStart{}),
117  sel.st(U32.is_eq(c, 10), blank.pick(row_empty(st), st),
118  sel.st(U32.is_eq(c, 13), st,
119  with_mode(push(c, st), MPlain{})))))

Uses (10)

Used by (1)