def text.chunk.shift
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
3538def text.chunk.shift(xs: List<&2, TextChunk>, +key: U32) -> F32:
3539 match xs:
3540 case Nil{}: 0.0
3541 case Con{TextChunk{id, shift}, rest}: U.branch(F32, U32.is_eq(id, key), _ => shift, _ => text.chunk.shift(rest, key))