All Unordered Pairs of Elements in a Range

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Dec 13 14:24:50 PST 2014


Is there a Phobos method/range for selecting all pairs out of a 
range without caring about the ordering within each pair?

Example:

[1,2,3] => [(1,2), (2,3), (3,1)]


More information about the Digitalmars-d-learn mailing list