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

BoQsc vaidas.boqsc at gmail.com
Wed Dec 8 11:23:45 UTC 2021


Let's say I want to skip characters and build a new string.

The string example to loop/iterate:

```
import std.stdio;

void main()
{
     string a="abc;def;ab";

}
```

The character I want to skip: `;`

Expected result:
```
abcdefab
```


More information about the Digitalmars-d-learn mailing list