[Issue 7128] Cartesian product of ranges
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 5 18:37:33 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=7128
--- Comment #7 from bearophile_hugs at eml.cc 2013-02-05 18:37:32 PST ---
(In reply to comment #5)
> P.S. on second thoughts, probably the second version is not implementable right
> now because we can't compute the type of the return value at runtime.
To support this API this cartesianProduct has to return a range of dynamic
arrays(this is possible because the types of the items inside the arrays is
uniform), but the others return a range of tuples...
auto cartesianProduct(R)(R range, int repeat) { ... }
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list