Is there any generic iteration function that stops at first match?

Jack jckj33 at gmail.com
Fri Mar 5 02:13:39 UTC 2021


something like filter[1] but that stops at first match? are there 
any native functions for this in D or I have to write one? just 
making sure to not reinvent the wheel


[1]: https://devdocs.io/d/std_algorithm_iteration#filter


More information about the Digitalmars-d-learn mailing list