Options
All
  • Public
  • Public/Protected
  • All
Menu

The Ord type defines total ordering.

Inspired by Data.Ord from Haskell.

Instances must obey the following laws:

  1. Totality: S.lte(a, b) or S.lte(b, a)
  2. Antisymmetry: if S.lte(a, b) and S.lte(b, a), then S.equals(a, b)
  3. Transitivity: if S.lte(a, b) and S.lte(b, c), then S.lte(a, c)

Equivalent with the Ord type-class in the static-land spec.

Type parameters

  • A

Hierarchy

Index

Methods

Methods

equals

  • equals(x: A, y: A): boolean

lte

  • lte(a: A, b: A): boolean
  • Parameters

    • a: A
    • b: A

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc