Advertisement
Guest User

krazzy

a guest
Oct 6th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func x  | x < 0 = error "out of bounds"
  2.         | x < 90 = x
  3.         | x < 180 = 180 - x
  4.         | x < 270 = x - 180
  5.         | x < 360 = 270 - x
  6.         | otherwise = error "out of bounds"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement