Link Search Menu Expand Document

Negative overview

Added in v1.0.0


Table of contents


utils

Negative (type alias)

The type of values less than zero

Signature

export type Negative<A> = A & { readonly [NEGATIVE]: typeof NEGATIVE }

Added in v1.0.0

arbitraryNegative

Signature

export declare function arbitraryNegative<A>(
  T: Ord<A> & Semiring<A>
): (arb: fc.Arbitrary<A>) => fc.Arbitrary<Negative<A>>

Added in v1.0.0

isNegative

Signature

export declare function isNegative<A>(T: Ord<A> & HasZero<A>)

Added in v1.0.0

toNegative

Signature

export declare function toNegative<A>(T: Ord<A> & HasZero<A> & HasSub<A>): (a: A) => Negative<A>

Added in v1.0.0