Bounded
Constructors
Predicates
Type Class
Type Lambdas
BoundedTypeLambda interface
Added in v0.24.0
Source
Signature
interface BoundedTypeLambda extends TypeLambda { readonly type: Bounded<unknown>;}Utils
Clamp a value between minBound and maxBound values.
Signature
declare function clamp<A>(B: Bounded<A>): (a: A) => AReverses the Order of a Bounded and flips maxBound and minBound values.
Signature
declare function reverse<A>(B: Bounded<A>): Bounded<A>