next_permutation and cartesian product for ranges?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Oct 10 06:41:34 PDT 2012
On 10/9/12 7:25 PM, H. S. Teoh wrote:
> I was an idiot. I knew about std.algorithm.joiner but for some reason
> didn't think of it at the time. In any case, crossProduct doesn't make
> any sense to me... I don't see what it's got to do with flattening
> nested ranges.
I meant the resulting range spans the cross product (all combinations)
of the passed-in ranges.
On another subject, I think this can be done with only input ranges - no
need for bidirectional.
Andrei
More information about the Digitalmars-d
mailing list