Skip to content

Latest commit

 

History

History
111 lines (69 loc) · 2.03 KB

Const.md

File metadata and controls

111 lines (69 loc) · 2.03 KB
id title
Const
Module Const

← Index

Source

Const

Signature (data type) Source

export class Const<L, A> {
  constructor(readonly value: L) {}
  ...
}

contramap

Signature (method) Source

contramap<B>(f: (b: B) => A): Const<L, B>  { ... }

Added in v1.0.0

fold

Signature (method) Source

fold<B>(f: (l: L) => B): B  { ... }

Added in v1.0.0

inspect

Signature (method) Source

inspect(): string  { ... }

Added in v1.0.0

map

Signature (method) Source

map<B>(f: (a: A) => B): Const<L, B>  { ... }

Added in v1.0.0

toString

Signature (method) Source

toString(): string  { ... }

Added in v1.0.0

Added in v1.0.0

const_

Signature (constant) Source

export const const_: Functor2<URI> & Contravariant2<URI> = ...

Added in v1.0.0

getApplicative

Signature (function) Source

export const getApplicative = <L>(M: Monoid<L>): Applicative2C<URI, L> => { ... }

Added in v1.0.0

getApply

Signature (function) Source

export const getApply = <L>(S: Semigroup<L>): Apply2C<URI, L> => { ... }

Added in v1.0.0

getSetoid

Signature (function) Source

export const getSetoid = <L, A>(S: Setoid<L>): Setoid<Const<L, A>> => { ... }

Added in v1.0.0