def arc.flag

gralha-svg-render@0.1.0.1 · svg.bend:237

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

237def arc.flag(+s: String) -> U.Number:
238  match s:
239    case SNil{}: U.Number{0.0, "", False{}}
240    case SCon{Chr{c}, t}: U.Number{U.choose(F32, U32.is_eq(c, 49), 1.0, 0.0), t, U32.is_eq(c, 48) || U32.is_eq(c, 49)}

Uses (8)

Used by (1)