def l1_row_go
import mlbend-preprocess@0.1.0.0/main.bend as MlbendPreprocessimport Base
104# One row divided by the sum of its absolute values, cell by cell.
105def l1_row_go(+row: List<&2, F32>, +acc: List<&2, F32>, +total: F32) -> List<&2, F32>:
106 match row:
107 case Nil{}:
108 l1_finish(acc, total)
109 case Con{+h, t}:
110 l1_row_go(t, List.append(&2, F32, acc, Con{h, Nil{}}), F32.add(total, F32.abs(h)))