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