def flatten.l
import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensorimport Base
213# joins all the rows into a single list
214def flatten.l(rows: List<&2, List<&2, F32>>) -> List<&2, F32>:
215 match rows:
216 case Nil{}:
217 Nil{}
218 case Con{r, t}:
219 List.append(&2, F32, r, flatten.l(t))