def flatten.l

bend-ml-tensor@0.1.2.0 · main.bend:213

import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensor
import 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))

Uses (3)

Used by (1)