Options
All
  • Public
  • Public/Protected
  • All
Menu

Type-class laws for Setoid, as defined in the funland sub-project and in the static-land spec.

Laws defined for Setoid:

  1. Reflexivity: S.equals(a, a) === true
  2. Symmetry: S.equals(a, b) === S.equals(b, a)
  3. Transitivity: if S.equals(a, b) and S.equals(b, c), then S.equals(a, c)

Type parameters

  • A

Hierarchy

Index

Constructors

constructor

Properties

F

F: Setoid<A>

Methods

setoidReflexivity

  • setoidReflexivity(a: A): Equiv<boolean>

setoidSymmetry

  • setoidSymmetry(x: A, y: A): Equiv<boolean>

setoidTransitivity

  • setoidTransitivity(x: A, y: A, z: A): Equiv<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