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

Reply via email to