def sum.go

bend-ml-tensor@0.1.2.0 · main.bend:57

import bend-ml-tensor@0.1.2.0/main.bend as BendMlTensor
import Base

57def sum.go(xs: List<&2, F32>, acc: F32) -> F32:
58  match xs:
59    case Nil{}:
60      acc
61    case Con{+h, t}:
62      sum.go(t, (acc + h : F32))

Uses (3)

Used by (5)