Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. class (Ord a) => Range a where
  2. fromInclusive :: (a,a) -> a
  3. fromInclusive tup = fst tup
  4. toExclusive :: (a,a) -> a
  5. toExclusive tup = snd tup
  6. isInRange :: (a,a) -> a -> Bool
  7. isInRange (x,y) z = z > x && z < y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement