def gcd_all_go

bend-collections@1.0.0.0 · src/math/natural.bend:71

import bend-collections@1.0.0.0/src/math/natural.bend as Natural
import Base

71def gcd_all_go(xs: List<&2, Nat>, +acc: Nat) -> Nat:
72  match xs:
73    case Nil{}:
74      acc
75    case Con{+x, rest}:
76      gcd_all_go(rest, gcd(acc, x))

Uses (3)

Used by (1)