Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func x | x < 0 = error "out of bounds"
- | x < 90 = x
- | x < 180 = 180 - x
- | x < 270 = x - 180
- | x < 360 = 270 - x
- | otherwise = error "out of bounds"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement