def trim
import gralha-text-scan@0.1.0.1/scan.bend as Scanimport Base
56def trim(+s: String) -> String:
57 match s:
58 case SNil{}: ""
59 case SCon{Chr{c}, t}:
60 branch(String, space(c), _ => trim(t), _ => SCon{Chr{c}, t})
import gralha-text-scan@0.1.0.1/scan.bend as Scanimport Base
56def trim(+s: String) -> String:
57 match s:
58 case SNil{}: ""
59 case SCon{Chr{c}, t}:
60 branch(String, space(c), _ => trim(t), _ => SCon{Chr{c}, t})