Sorry, I misread the task :)

/ Emil



Emil Axelsson skrev:
Why not:

  diag = [(x, sum-x) | sum <- [2..], x <- [1 .. sum-1]]

/ Emil


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to