Comonad overview

Added in v2.0.0


Table of contents


model

Comonad (interface)

Signature

export interface Comonad<W> extends Extend<W> {
  readonly extract: <A>(wa: HKT<W, A>) => A
}

Added in v2.0.0

Comonad1 (interface)

Signature

export interface Comonad1<W extends URIS> extends Extend1<W> {
  readonly extract: <A>(wa: Kind<W, A>) => A
}

Added in v2.0.0

Comonad2 (interface)

Signature

export interface Comonad2<W extends URIS2> extends Extend2<W> {
  readonly extract: <E, A>(wa: Kind2<W, E, A>) => A
}

Added in v2.0.0

Comonad2C (interface)

Signature

export interface Comonad2C<W extends URIS2, E> extends Extend2C<W, E> {
  readonly extract: <A>(wa: Kind2<W, E, A>) => A
}

Added in v2.0.0

Comonad3 (interface)

Signature

export interface Comonad3<W extends URIS3> extends Extend3<W> {
  readonly extract: <R, E, A>(wa: Kind3<W, R, E, A>) => A
}

Added in v2.0.0

Comonad3C (interface)

Signature

export interface Comonad3C<W extends URIS3, E> extends Extend3C<W, E> {
  readonly extract: <R, A>(wa: Kind3<W, R, E, A>) => A
}

Added in v2.10.0

Comonad4 (interface)

Signature

export interface Comonad4<W extends URIS4> extends Extend4<W> {
  readonly extract: <S, R, E, A>(wa: Kind4<W, S, R, E, A>) => A
}

Added in v2.10.0