Wanted: best way to express default expectations

Dukc ajieskola at gmail.com
Thu Oct 10 11:50:59 UTC 2019

On Thursday, 10 October 2019 at 11:47:21 UTC, Dukc wrote:
> On Thursday, 10 October 2019 at 11:44:58 UTC, Nicholas Wilson 
> wrote:
>> https://dlang.org/phobos/std_algorithm_iteration.html#.filter
> For loops, that's an excellent choice. But what about early 
> function returns?

And also, sometimes it's not practical to filter the range up 
front. You may also want to shortcut out in middle of the 
`foreach` body, or `break` out of an outer loop, or `return` 
instead of just aborting the loop.

More information about the Digitalmars-d mailing list