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

Steven Schveighoffer schveiguy at yahoo.com
Fri Mar 5 04:22:23 UTC 2021


On Friday, 5 March 2021 at 02:13:39 UTC, Jack wrote:
> 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

std.algorithm.searching.until

-Steve


More information about the Digitalmars-d-learn mailing list