Skip to content

Commit

Permalink
Add a law about endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Jan 18, 2021
1 parent 3278904 commit a663ea0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/System/Random/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,11 @@ class UniformRange a where
--
-- > isInRange (x, x) y == x == y
--
-- Endpoints are endpoints:
--
-- > isInRange (lo, hi) x ==>
-- > isInRange (lo, x) hi == x == hi
--
-- Ranges are transitive relations:
--
-- > isInRange (lo, hi) lo' && isInRange (lo, hi) hi' &&
Expand Down

0 comments on commit a663ea0

Please sign in to comment.