Re: Range of Ranges and std.algorithm

2010-03-17 Thread Jesse Phillips
Thank you, your fuse is a much cleaner way than how I did it and works with reduce.

Re: Range of Ranges and std.algorithm

2010-03-17 Thread Philippe Sigaud
On Tue, Mar 16, 2010 at 17:35, Jesse Phillips > wrote: > I'm guessing that containers will help with this, but I'm not sure how. > > Say I have an int[][] of unknown length and I want to get the > setIntersection of all int[]s. The only way I can see to do that is to > intersect the first two ele

Range of Ranges and std.algorithm

2010-03-16 Thread Jesse Phillips
I'm guessing that containers will help with this, but I'm not sure how. Say I have an int[][] of unknown length and I want to get the setIntersection of all int[]s. The only way I can see to do that is to intersect the first two elements and iterate over them storing into an int[] which can be u