def line_len
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmtimport Base
84def line_len(+l: List<&2, Seg>) -> Nat:
85 match l:
86 case Nil{}:
87 0n
88 case Con{s, t}:
89 Nat.add(seg_len(s), line_len(t))
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmtimport Base
84def line_len(+l: List<&2, Seg>) -> Nat:
85 match l:
86 case Nil{}:
87 0n
88 case Con{s, t}:
89 Nat.add(seg_len(s), line_len(t))