Table of contents


NonZeroRational (type alias)

Signature

export type NonZeroRational = [NonZeroInteger, Natural]

add (constant)

Signature

export const add: (x: NonZeroRational, y: NonZeroRational) => NonZeroRational = ...

div (constant)

Signature

export const div: (x: NonZeroRational, y: NonZeroRational) => NonZeroRational = ...

mul (constant)

Signature

export const mul: (x: NonZeroRational, y: NonZeroRational) => NonZeroRational = ...

one (constant)

Signature

export const one: NonZeroRational = ...

ord (constant)

Signature

export const ord: Ord<NonZeroRational> = ...

reduce (constant)

Signature

export const reduce: (n: NonZeroInteger, d: Natural) => NonZeroRational = ...

setoid (constant)

Signature

export const setoid: Setoid<NonZeroRational> = ...

show (constant)

Signature

export const show: (x: NonZeroRational) => string = ...

fromRational (function)

Signature

export function fromRational(r: Rational): Option<NonZeroRational> { ... }

inverse (function)

Signature

export function inverse(x: NonZeroRational): NonZeroRational { ... }

sub (function)

Signature

export function sub(x: NonZeroRational, y: NonZeroRational): Option<NonZeroRational> { ... }