def Flat.zip.go

bend-tensors@0.0.0.2 · bend_tensors.bend:1848

import bend-tensors@0.0.0.2/bend_tensors.bend as BendTensors
import Base

1848def Flat.zip.go(~f: F32 -> F32 -> F32, n: Nat, +i: U32, ab: Array<F32> & Array<F32>) -> Array<F32> & Array<F32>:
1849  match n:
1850    case 0n:
1851      ab
1852    case 1n+p:
1853      (a, b) = ab
1854      Flat.zip.go(~f, p, (i + 1 : U32), Flat.zip.step(~f, i, b, Array.get(F32, a, i)))

Uses (9)

Used by (1)