def text.lstrip
import ezsys@0.1.0.0/src/str.bend as Strimport Base
39# the text with its leading whitespace removed
40def text.lstrip(txt: String) -> String:
41 match txt:
42 case SNil{}:
43 SNil{}
44 case SCon{+h, +t}:
45 text.lstrip.if(text.space(h), h, t, _u => text.lstrip(t))