def train_of_go

mlbend-split@0.1.1.0 · main.bend:193

import mlbend-split@0.1.1.0/main.bend as MlbendSplit
import Base

193# The rows of the fold f: the ones that train.
194def train_of_go(+fs: List<&2, Nat>, +f: Nat, +i: Nat, +acc: List<&2, Nat>) -> List<&2, Nat>:
195  match fs:
196    case Nil{}:
197      acc
198    case Con{+h, t}:
199      train_of_go(t, f, Nat.add(i, 1n), train_row(h, f, acc, i))

Uses (4)

Used by (1)