def strip.lead

ezmcp@0.1.0.0 · src/openapi.bend:648

import ezmcp@0.1.0.0/src/openapi.bend as Openapi
import Base

648def strip.lead(text: String, +want: Char) -> String:
649  match text:
650    case SNil{}:
651      SNil{}
652    case SCon{+ch, rest}:
653      strip.lead.at(Char.is_eq(ch, want), ch, rest)

Uses (4)

Used by (1)