MlbendDatasets.add_row_of: def of mlbend-datasets@0.1.6.0 Import: import mlbend-datasets@0.1.6.0/main.bend as MlbendDatasets Lines 51-58 of mlbend-datasets@0.1.6.0/main.bend: https://jend.leeeet.dev/read.txt?path=mlbend-datasets@0.1.6.0/main.bend&start_line=51&end_line=58 import Base # The rows of a file, and the row one line makes. def add_row_of(acc: Rows, +r: Row) -> Rows: match acc: case Rows{rows, labels}: match r: case Row{features, +label}: Rows{List.append(&2, Row, rows, r <> Nil{}), List.append(&2, F32, labels, label <> Nil{})} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=mlbend-datasets@0.1.6.0/main.bend&name=Row https://jend.leeeet.dev/definition.txt?path=mlbend-datasets@0.1.6.0/main.bend&name=Rows