Map Lambda with Side-Effects

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 13 02:06:25 PST 2015


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


More information about the Digitalmars-d-learn mailing list