def row_rest
import bendtorch-core@0.1.0.0/src/autograd/loss.bend as Lossimport Base
83# max_step of m and the `fuel` words from `position` on, left to right.
84def row_rest(fuel: Nat, +position: Nat, +m: F32, array: Array<F32>) -> F32 & Array<F32>:
85 match fuel:
86 case 0n:
87 (m, array)
88 case 1n+remaining:
89 row_next(m, value => kept => row_rest(remaining, 1n+position, value, kept), Array.get(F32, array, U32.from_nat(position)))