www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - in for testing

reply Johnson <Johnson Johnson.com> writes:
while(str[i] in [' ', '\r', ...])

rather than having to do each test individually.
Aug 26
parent Temtaime <temtaime gmail.com> writes:
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', ...))
Aug 26