def row

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

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

33# One record, without the line end.
34def row(fs: List<&2, String>) -> String:
35  match fs:
36    case Nil{}:
37      ""
38    case Con{h, Nil{}}:
39      field(h)
40    case Con{h, Con{h2, t2}}:
41      field(h) ++ "," ++ row(h2 <> t2)

Uses (4)

Used by (3)