[Issue 6788] std.range.pairwise
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Dec 5 15:39:03 PST 2014
https://issues.dlang.org/show_bug.cgi?id=6788
--- Comment #6 from bearophile_hugs at eml.cc ---
(In reply to hsteoh from comment #5)
> Hmm. Sounds like what you want is n-element subsets, rather than tuples
> specifically. I'll see if I can find any good algorithms for n-subset
> enumeration...
Isn't the code in comment #4 good enough?
(A pairwise range needs to be very efficient, so people can use it instead of
two nested loops in more cases).
--
More information about the Digitalmars-d-bugs
mailing list