Elegant way to test if members of array A are present in array B?

Alex sascha.orlov at gmail.com
Tue Jun 11 17:21:43 UTC 2019


On Tuesday, 11 June 2019 at 17:12:17 UTC, Robert M. Münch wrote:
> Is there a simple and elegant way to do this? Or is just using 
> a foreach(...) with canFind() the best way?

There is also find_among, but the performance is the same, I 
assume.
https://dlang.org/library/std/algorithm/searching/find_among.html


More information about the Digitalmars-d-learn mailing list