def add_row_of
import mlbend-datasets@0.1.6.0/main.bend as MlbendDatasetsimport Base
51# The rows of a file, and the row one line makes.
52def add_row_of(acc: Rows, +r: Row) -> Rows:
53 match acc:
54 case Rows{rows, labels}:
55 match r:
56 case Row{features, +label}:
57 Rows{List.append(&2, Row, rows, r <> Nil{}),
58 List.append(&2, F32, labels, label <> Nil{})}