Range golf challenge: apply predicate to a subrange, returning the original range modified.

Andrey Zherikov andrey.zherikov at gmail.com
Fri Oct 7 14:16:19 UTC 2022


On Friday, 7 October 2022 at 14:00:57 UTC, FeepingCreature wrote:
> Task: Given a range `range`, return a new range that consists 
> of the elements of `range`, except modified with the `modify` 
> predicate at all elements that are part of the subrange 
> selected by `.select`.

May be I misunderstood but why doesn't `.select.map` work here?


More information about the Digitalmars-d mailing list