def cell_width
import cli@0.2.0.0/cli.bend as Cliimport Base
5505def cell_width(cell: List<&2, Segment>) -> Nat:
5506 match cell:
5507 case Nil{}: 0n
5508 case Segment{text, styles} <> tail: Nat.add(width(text), cell_width(tail))
import cli@0.2.0.0/cli.bend as Cliimport Base
5505def cell_width(cell: List<&2, Segment>) -> Nat:
5506 match cell:
5507 case Nil{}: 0n
5508 case Segment{text, styles} <> tail: Nat.add(width(text), cell_width(tail))