Cli.cell_width: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 5505-5508 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=5505&end_line=5508 import Base def cell_width(cell: List<&2, Segment>) -> Nat: match cell: case Nil{}: 0n case Segment{text, styles} <> tail: Nat.add(width(text), cell_width(tail)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Segment https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=width