String module

trim_left

procedureSource

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

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

Parameters

s: string

Returns

string
Example↗
assert(trim_left("  hi ") == "hi ");

See also