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

Meta jared771 at gmail.com
Wed Jun 12 13:58:49 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 are two versions of find that can find a range within 
another:

https://dlang.org/phobos/std_algorithm_searching.html#.find
https://dlang.org/phobos/std_algorithm_searching.html#.find.3


More information about the Digitalmars-d-learn mailing list