Table of contents


PositiveRational (type alias)

Signature

export type PositiveRational = [Natural, Natural]

add (constant)

Signature

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

div (constant)

Signature

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

inverse (constant)

Signature

export const inverse: (x: PositiveRational) => PositiveRational = ...

mul (constant)

Signature

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

one (constant)

Signature

export const one: PositiveRational = ...

ord (constant)

Signature

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

reduce (constant)

Signature

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

setoid (constant)

Signature

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

show (constant)

Signature

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

fromRational (function)

Signature

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

sub (function)

Signature

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