Syntax for checking if an element exists in a list

"Stéphane" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 5 06:35:11 PST 2015


On Thursday, 5 February 2015 at 12:35:03 UTC, Tobias Pankrath 
wrote:
> import std.algorithm;
>
>         if(options[1].canFind("foo", "bar", "baz"))

  This looks quite OK. Thank you, I did not know about that 
possibility.


More information about the Digitalmars-d-learn mailing list