predicate overview
Added in v1.0.0
Table of contents
BooleanAlgebra
implies
Signature
export declare function implies<A>(ab: Predicate<A>): (bc: Predicate<A>) => Predicate<A>
Added in v1.0.0
join
Signature
export declare function join<A>(ab: Predicate<A>): (bc: Predicate<A>) => Predicate<A>
Added in v1.0.0
meet
Signature
export declare function meet<A>(ab: Predicate<A>): (bc: Predicate<A>) => Predicate<A>
Added in v1.0.0
not
Signature
export declare function not<A>(predicate: Predicate<A>): Predicate<A>
Added in v1.0.0
Combinator
local
Signature
export declare function local<R, Q>(f: (q: Q) => R): (fa: Predicate<R>) => Predicate<Q>
Added in v1.0.0
Combinators
Primitive (type alias)
Signature
export type Primitive = string | number | boolean | null | undefined | bigint | symbol
Added in v1.0.0
getOne
Signature
export declare function getOne<A extends Primitive>(value: A): Predicate<A>
Added in v1.0.0
getZero
Signature
export declare function getZero<A extends Primitive>(value: A): Predicate<A>
Added in v1.0.0
Constructors
fromDefinement
Signature
export declare function fromDefinement<E>(definement: DF.Definement<E, any>): Predicate<E>
Added in v1.0.0
fromRefinement
Signature
export declare function fromRefinement<E>(refinement: RF.Refinement<E, any>): Predicate<E>
Added in v1.0.0
Contravariant
contramap
Signature
export declare function contramap<A, B>(f: (b: B) => A): (fa: Predicate<A>) => Predicate<B>
Added in v1.0.0
Destructors
toDefinement
Signature
export declare function toDefinement<E, A extends E>(predicate: Predicate<E>): DF.Definement<E, A>
Added in v1.0.0
toRefinement
Signature
export declare function toRefinement<E, A extends E>(predicate: Predicate<E>): RF.Refinement<E, A>
Added in v1.0.0
Instances
Contravariant
Signature
export declare const Contravariant: Contravariant1<'Predicate'>
Added in v1.0.0
getBooleanAlgebra
Signature
export declare function getBooleanAlgebra<A extends Primitive>(value: A): BooleanAlgebra<Predicate<A>>
Added in v1.0.0
Model
Predicate
Signature
export declare const Predicate: any
Added in v1.0.0
URI
Signature
export declare const URI: 'Predicate'
Added in v1.0.0
URI (type alias)
Signature
export type URI = typeof URI
Added in v1.0.0