← Back

Source

Bounded

interface Bounded<A> extends Ord<A> {
  readonly top: A
  readonly bottom: A
}

Added in v1.0.0 (type class)

The Bounded type class represents totally ordered types that have an upper and lower boundary.

Instances should satisfy the following law in addition to the Ord laws:

boundedNumber

Bounded<number>

Added in v1.0.0 (instance)