Guest User

Untitled

a guest
Jul 18th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. coords m n = [(x, y) | x <- [0..m], y <- [0..n]]
  2.  
  3. coords 1 1
  4. [(0,0),(0,1),(1,0),(1,1)]
  5.  
  6. coords 1 2
  7.  
  8. [(0,0),(0,1),(0,2),(1,0),(1,1),(1,2)]
Add Comment
Please, Sign In to add comment