Return explicitly "empty" MapResult (fail-fast)

monkyyy crazymonkyyy at gmail.com
Thu Jan 1 19:39:15 UTC 2026


On Thursday, 1 January 2026 at 19:30:11 UTC, zhade wrote:
> 
>     auto list = someExpensiveOperation();
>
>     return list
>         .filter!filterFunc
>         .map!mapFunc;
> }

oh your looking to mutate the data

Consider my mutmap here if expensive operation is element by 
element: 
https://forum.dlang.org/post/urwssqgafegghncksyio@forum.dlang.org


More information about the Digitalmars-d-learn mailing list