def headers
import cswap-bend-cli@0.1.0.0/fmt/shape.bend as Shapeimport Base
108def headers(cols: List<&2, Col>) -> List<&2, String>:
109 match cols:
110 case Nil{}:
111 []
112 case Con{Col{h, p}, t}:
113 h <> headers(t)
import cswap-bend-cli@0.1.0.0/fmt/shape.bend as Shapeimport Base
108def headers(cols: List<&2, Col>) -> List<&2, String>:
109 match cols:
110 case Nil{}:
111 []
112 case Con{Col{h, p}, t}:
113 h <> headers(t)