← Back

Source

const_

Functor2<URI> & Contravariant2<URI>

Added in v1.0.0 (instance)

Const

constructor(readonly value: L) {}

Added in v1.0.0 (data)

contramap

<B>(f: (b: B) => A): Const<L, B>

Added in v1.0.0 (method)

fold

<B>(f: (l: L) => B): B

Added in v1.0.0 (method)

inspect

(): string

Added in v1.0.0 (method)

map

<B>(f: (a: A) => B): Const<L, B>

Added in v1.0.0 (method)

toString

(): string

Added in v1.0.0 (method)

getApplicative

<L>(M: Monoid<L>): Applicative2C<URI, L>

Added in v1.0.0 (function)

getApply

<L>(S: Semigroup<L>): Apply2C<URI, L>

Added in v1.0.0 (function)

getSetoid

<L, A>(S: Setoid<L>): Setoid<Const<L, A>>

Added in v1.0.0 (function)