Is there any generic iteration function that stops at first match?
Jack
jckj33 at gmail.com
Fri Mar 5 05:36:33 UTC 2021
On Friday, 5 March 2021 at 04:22:23 UTC, Steven Schveighoffer
wrote:
> 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
thanks, totally overlooked this searching section
More information about the Digitalmars-d-learn
mailing list