Map Lambda with Side-Effects

Tobias Pankrath via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 13 17:15:56 PST 2015


> Is it possible to
> - detect that a lambda is has-side-effects and that
> - the map hasn't been used?

Thing is: I'm regularly doing that on purpose.

Actually, isn't your closure even weakly pure in your example, 
because arr is part of the closure and thus an argument to it.


More information about the Digitalmars-d-learn mailing list