def gcd_all_go
import bend-collections@1.0.0.0/src/math/natural.bend as Naturalimport 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))