def text.lstrip

ezsys@0.1.0.0 · src/str.bend:39

import ezsys@0.1.0.0/src/str.bend as Str
import 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))

Uses (3)

Used by (2)