def cb_row
import bend-ml-tensor-array@0.1.19.0/main.bend as BendMlTensorArrayimport Base
1097# w numbers of xs into c from idx; what is left of xs comes back
1098def cb_row(+ac: Bool, w: Nat, +idx: U32, c: Array<F32>, xs: List<&2, F32>) -> RW:
1099 match w xs:
1100 case 1n+p Con{+h, t}:
1101 cb_row(ac, p, (idx + 1 : U32), cwr(ac, idx, h, c), t)
1102 case _ _:
1103 RW{c, xs}