Interval.agda 239 B

12345678910111213
  1. module Data.Interval where
  2. data Interval (A : Set) : Set where
  3. [_▻_] : A -> A -> Interval A
  4. lowerBound : {A : Set} -> Interval A -> A
  5. lowerBound [ l ▻ u ] = l
  6. upperBound : {A : Set} -> Interval A -> A
  7. upperBound [ l ▻ u ] = u