[Issue 7128] Cartesian product of ranges

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 9 03:22:19 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=7128



--- Comment #18 from bearophile_hugs at eml.cc 2013-02-09 03:22:18 PST ---
Extra on cartesianProduct: maybe you should add a little benchmark, to be sure
the way you have implemented the variadic cartesianProduct() (with the
flattening of nested tuples) is efficient/fast enough:

enum N = 10; // Change me.
int[] items = iota(N).array();
immutable len = cartesianProduct(items, items, items, items,
items).walkLength();

-- 
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