def lcm_all_go

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

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

81def lcm_all_go(xs: List<&2, Nat>, +acc: Nat) -> Nat:
82  match xs:
83    case Nil{}:
84      acc
85    case Con{+x, rest}:
86      lcm_all_go(rest, lcm(acc, x))

Uses (3)

Used by (4)