id | title |
---|---|
Const |
Module Const |
Signature (data type) Source
export class Const<L, A> {
constructor(readonly value: L) {}
...
}
Signature (method) Source
contramap<B>(f: (b: B) => A): Const<L, B> { ... }
Added in v1.0.0
Signature (method) Source
fold<B>(f: (l: L) => B): B { ... }
Added in v1.0.0
Signature (method) Source
inspect(): string { ... }
Added in v1.0.0
Signature (method) Source
map<B>(f: (a: A) => B): Const<L, B> { ... }
Added in v1.0.0
Signature (method) Source
toString(): string { ... }
Added in v1.0.0
Added in v1.0.0
Signature (constant) Source
export const const_: Functor2<URI> & Contravariant2<URI> = ...
Added in v1.0.0
Signature (function) Source
export const getApplicative = <L>(M: Monoid<L>): Applicative2C<URI, L> => { ... }
Added in v1.0.0
Signature (function) Source
export const getApply = <L>(S: Semigroup<L>): Apply2C<URI, L> => { ... }
Added in v1.0.0
Signature (function) Source
export const getSetoid = <L, A>(S: Setoid<L>): Setoid<Const<L, A>> => { ... }
Added in v1.0.0