
18 Dec
2007
18 Dec
'07
7:27 p.m.
On Dec 18, 2007 12:56 PM, Bertram Felgenhauer
finally, we could make it slightly more lazy
Good point, your version is much better. The same issue applies to permutations. I haven't had time to write out the code yet, but I can imagine a version of permutations that does: permutations [1..] = [1...], [2,1, ...], [1,3,2 ...], [2,3,1 ...], [3,1,2 ...], [3,2,1 ...], ... so that the expression (take 10 $ map (take 10) $ permutations [1..]) isn't bottom.