Lawrence Aberba

Authored Comments

Yes, you can totally do something like that:

mport std.stdio : writeln;
import std.uni : asLowerCase, asCapitalized;

void main()
{
string mySentence = "D IS COOL";
mySentence
.asLowerCase
.asCapitalized
.writeln;
}

Try running this example at https://run.dlang.io/is/cdLnpD

You're right! It didn't come to mind. I'll include that in my next article.