String module

trim_left

procedure · 1 overloadSource

s without the chars at its start; the result points into s.

trim_left :: (s: string, chars := DEFAULT_SPACES) -> string

Parameters

s: string
chars := DEFAULT_SPACES

Returns

string
ExampleOpen in playground ↗
assert(trim_left("  hi ") == "hi ");

See also