Re: More general Cartesian product

2012-02-29 Thread Philippe Sigaud
I have a need for a Cartesian product of multiple ranges. I see there's been a discussion here (Dec 2011) as well as a request posted (#7128). It seems to me that the request deals with a multidimensional product -- which is what I need -- while the implementation by Timon Gehr deals only with

Re: More general Cartesian product

2012-02-29 Thread Magnus Lie Hetland
On 2012-02-29 14:24:36 +, Philippe Sigaud said: [snip] Thanks for the response. In the meantime, I also hacked together a simple version of what I needed (see below), but I'll look into the references you provided as well :) void forall(alias func, size_t lvl=0, T...)(T args) {