Table of contents
- Format (interface)
- Discrete (class)
- getOne (function)
- getOrd (function)
- getSetoid (function)
- getZero (function)
Format (interface)
Signature
export interface Format<D extends string, U extends string | number | symbol> {
dimension: D
unit: U
}
Discrete (class)
Signature
export class Discrete<D, U> {
constructor(readonly format: Format<D, U>, readonly value: Integer) { ... }
...
}
add (method)
Signature
add(y: Discrete<D, U>): Discrete<D, U> { ... }
mul (method)
Signature
mul(y: Integer): Discrete<D, U> { ... }
negate (method)
Signature
negate(): Discrete<D, U> { ... }
sub (method)
Signature
sub(y: Discrete<D, U>): Discrete<D, U> { ... }
div (method)
Signature
div(y: NonZeroInteger): Discrete<D, U> { ... }
isZero (method)
Signature
isZero(): boolean { ... }
inspect (method)
Signature
inspect(): string { ... }
toString (method)
Signature
toString(): string { ... }
getOne (function)
Signature
export function getOne<D extends string, U extends string>(format: Format<D, U>): Discrete<D, U> { ... }
getOrd (function)
Signature
export function getOrd<D extends string, U extends string>(): Ord<Discrete<D, U>> { ... }
getSetoid (function)
Signature
export function getSetoid<D extends string, U extends string>(): Setoid<Discrete<D, U>> { ... }
getZero (function)
Signature
export function getZero<D extends string, U extends string>(format: Format<D, U>): Discrete<D, U> { ... }