If I've got something that looks like this:
list1 = [(a,b,c) | a <- [0..], b <- [0..], c <- [0..]]
How would I go about updating each of the variables once instead of c infinitely growing?
Like this:
[(0,0,0), (0,0,1), (0,1,1), (1,1,1), ...]
Instead of this:
[(0,0,0), (0,0,1), (0,0,2), (0,0,3), ...]