In-Place Ordering of Elements
"Nordlöw"
per.nordlow at gmail.com
Mon Jan 13 14:28:21 PST 2014
Does Phobos have some variadic algorithm to order l-value
reference arguments in place? Something like
int a=3;
int b=2;
int c=1;
orderInPlace(a,b,c);
// a is now 1
// b is now 2
// c is now 3
Also a functional variant, say `order(a, b, c)`, that returns a
tuple would also be nice.
See also
https://stackoverflow.com/questions/21102646/in-place-ordering-of-elements.
More information about the Digitalmars-d-learn
mailing list