def width.go
import bend-kit-tty@0.1.0.1/text.bend as Textimport Base
30def width.go(gs: List<&2, String>, +acc: U32) -> U32:
31 match gs:
32 case Nil{}:
33 acc
34 case Con{g, t}:
35 width.go(t, (acc + cluster(g) : U32))
import bend-kit-tty@0.1.0.1/text.bend as Textimport Base
30def width.go(gs: List<&2, String>, +acc: U32) -> U32:
31 match gs:
32 case Nil{}:
33 acc
34 case Con{g, t}:
35 width.go(t, (acc + cluster(g) : U32))