How to loop through characters of a string in D language?

forkit forkit at gmail.com
Sat Dec 11 00:39:15 UTC 2021


On Friday, 10 December 2021 at 22:35:58 UTC, Arjan wrote:
>
> "abc;def;ghi".tr(";", "", "d" );
>

I don't think we have enough ways of doing the same thing yet...

so here's one more..

"abc;def;ghi".substitute(";", "");



More information about the Digitalmars-d-learn mailing list