multi compare

Hussien via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 16 18:36:04 PDT 2017


On Friday, 17 March 2017 at 01:27:01 UTC, Adam D. Ruppe wrote:
> On Friday, 17 March 2017 at 00:39:15 UTC, Hussien wrote:
>> if (x in [a,b,c,..])
>
> import std.algorithm.comparison;
>
> x.among(a, b, c);
>
> http://dpldocs.info/experimental-docs/std.algorithm.comparison.among.1.html

thanks


More information about the Digitalmars-d-learn mailing list