The OpenD Programming Language

stripLeft

import mir.string;
alias stripLeft = scanLeftAny!"!="

Examples

import mir.test: should;

"     hello world     ".stripLeft(' ').should == "hello world     ";
"     hello world     ".scanLeftAny('w').should == "world     ";
"     hello world     ".scanLeftAny('!').should == "";
"\t\n\thello world\n\t___".stripLeft('\n', '\t').should == "hello world\n\t___";
"hello world".stripLeft(' ').should == "hello world";
"hello world           ".stripLeft(' ').should == "hello world           ";

"        _____________              hello world     "
    .stripLeft(' ', '_').should == "hello world     ";

Meta