def css.lower

gralha-css-style@0.1.0.1 · css.bend:6

import gralha-css-style@0.1.0.1/css.bend as Css
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U

6def css.lower(s: String) -> String:
7  match s:
8    case SNil{}: ""
9    case SCon{Chr{c}, t}:
10      +ch = c
11      SCon{Chr{U.choose(U32, U32.is_ge(ch, 65) && U32.is_le(ch, 90), (ch + 32 : U32), ch)}, css.lower(t)}

Uses (8)

Used by (19)