def check.gt_count
import bolt@1.27.0.0/src/rules/style/wrap.bend as Wrapimport Base
173# how many `>` a run holds
174def check.gt_count(cs: List<&2, Char>) -> Nat:
175 match cs:
176 case Nil{}:
177 0n
178 case Con{+c, t}:
179 +more = check.gt_count(t)
180 Bool.pick(Nat, Char.is_eq(c, '>'), Succ{more}, more)