def path.next
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
225def path.next(s: String, +cmd: U32) -> PathNext:
226 match s:
227 case SNil{}: PathNext{0, 0, ""}
228 case SCon{Chr{c}, t}:
229 +cc = c
230 PathNext{U.choose(U32, path.letter(cc), 1, U.choose(U32, U32.is_ne(cmd, 0), 2, 3)), cc, t}