def rows

ezx@1.11.0.0 · src/sha/nar.bend:296

import ezx@1.11.0.0/src/sha/nar.bend as Nar
import Base

296# the listing's fields, five to a path. A path the listing cut short is not
297# read.
298def rows(fs: List<&2, String>) -> List<&2, Row>:
299  match fs:
300    case Con{y, Con{m, Con{f, Con{p, Con{l, rest}}}}}:
301      Row{y, m, f, p, l} <> rows(rest)
302    case _:
303      []

Uses (3)

Used by (1)