std.algorithm.map - function by reference

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 24 15:12:08 PDT 2014


On Tuesday, 24 June 2014 at 21:46:16 UTC, kuba wrote:
> The main point here is to avoid unnecessary copies

You should make sure this actually matters - passing doubles by 
ref for example is probably slower than just passing a regular 
double.


More information about the Digitalmars-d-learn mailing list