map with void fun

bearophile bearophileHUGS at lycos.com
Sat Apr 6 15:08:25 PDT 2013


cal:

> Ah thank you, I did not realize a call to front was required.

Whenever you can, don't create side effects inside a map(). It 
will not work reliably. A higher order function like map is not 
meant to be used that way.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list