In-Place Ordering of Elements

bearophile bearophileHUGS at lycos.com
Mon Jan 13 17:18:57 PST 2014


anonymous:

> static ref int deref(int* p) {return *p;}
> sort(only(&a, &b, &c).map!deref);

Despite some holes, std.algorithm and std.range are quite 
powerful. Sometimes using them feels like playing a puzzle game 
:-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list