Re: Syntax for checking if an element exists in a list

2015-02-05 Thread Stéphane
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.

Re: Syntax for checking if an element exists in a list

2015-02-05 Thread Stéphane
On Thursday, 5 February 2015 at 13:31:21 UTC, Nicholas Wilson wrote: Note that D does NOT have default fall through. i.e. Yes, but I thought I read that we always had to explicitely specify one ending statement, as goto, continue... or break; which, in many basic cases, means having to add

Syntax for checking if an element exists in a list

2015-02-05 Thread Stéphane
and I am just unaware of it. Please enlighten me :-) Goodbye, Stéphane. PS: I tried posting this message to the mailing-list, but I got digitalmars-d-learn@puremagic.com: delivery to host puremagic.com[173.45.241.208] timed out. It was the same when I tried to confirm my subscription