Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class (Ord a) => Range a where
- fromInclusive :: (a,a) -> a
- fromInclusive tup = fst tup
- toExclusive :: (a,a) -> a
- toExclusive tup = snd tup
- isInRange :: (a,a) -> a -> Bool
- isInRange (x,y) z = z > x && z < y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement