def field.of
import bend-kit-csv@0.3.0.0/csv.bend as Csvimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
152# A quoted field's inner bytes with each "" as one quote. Quotes inside come in pairs.
153def field.of(esc: Bool, b: Bytes.Bytes) -> Bytes.Bytes:
154 match esc:
155 case True{}:
156 unq.of(Bytes.split(b, "\"\""))
157 case False{}:
158 b