def all_ge
import cswap-bend-cli@0.1.0.0/fmt/yamlr.bend as Yamlrimport Base
107def all_ge(ls: List<&2, Ln>, +n: Nat) -> Bool:
108 match ls:
109 case Nil{}:
110 True{}
111 case Con{Ln{i, t}, r}:
112 Nat.is_ge(i, n) && all_ge(r, n)
import cswap-bend-cli@0.1.0.0/fmt/yamlr.bend as Yamlrimport Base
107def all_ge(ls: List<&2, Ln>, +n: Nat) -> Bool:
108 match ls:
109 case Nil{}:
110 True{}
111 case Con{Ln{i, t}, r}:
112 Nat.is_ge(i, n) && all_ge(r, n)