Map Lambda with Side-Effects

Tobias Pankrath via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 13 02:21:11 PST 2015


On Tuesday, 13 January 2015 at 10:06:26 UTC, bearophile wrote:
> Nordlöw:
>
>> Has there been any discussions on
>> making map require pure functions now that we have each?
>
> Perhaps I'd like Phobos map and filter to be annotated with 
> "pure" and to have a template constraint that requires their 
> mapping/filtering functions to be strongly pure.
>
> Bye,
> bearophile

Please not.


More information about the Digitalmars-d-learn mailing list