in for testing

Temtaime via Digitalmars-d digitalmars-d at puremagic.com
Sat Aug 26 14:57:10 PDT 2017


On Saturday, 26 August 2017 at 21:50:14 UTC, Johnson wrote:
> while(str[i] in [' ', '\r', ...])
>
> rather than having to do each test individually.

while(str[i].among(' ', '\r', ...))


More information about the Digitalmars-d mailing list