ComonadStore

trait ComonadStore[F[_], S] extends Comonad[F]
Companion
object
trait Comonad[F]
trait Cobind[F]
trait Functor[F]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

Inherited from
Cobind
Inherited from
Comonad
Inherited from
Functor

Value members

Abstract methods

def peek[A](s: S, w: F[A]): A
def pos[A](w: F[A]): S

Concrete methods

def experiment[G[_], A](s: S => G[S], w: F[A])(implicit FG: Functor[G]): G[A]
def peeks[A](s: S => S, w: F[A]): A
def seek[A](s: S, w: F[A]): F[A]
def seeks[A](s: S => S, w: F[A]): F[A]

Inherited methods

def apply[A, B](fa: F[A])(f: A => B): F[B]

Alias for map.

Alias for map.

Inherited from
Functor
def bicompose[G[_, _] : Bifunctor]: Bifunctor[[α, β] =>> F[G[α, β]]]

The composition of Functor F and Bifunctor G, [x, y]F[G[x, y]], is a Bifunctor

The composition of Functor F and Bifunctor G, [x, y]F[G[x, y]], is a Bifunctor

Inherited from
Functor
def cobind[A, B](fa: F[A])(f: F[A] => B): F[B]

Also know as extend

Also know as extend

Inherited from
Cobind
Inherited from
Cobind
def cojoin[A](fa: F[A]): F[F[A]]

Also known as duplicate

Also known as duplicate

Inherited from
Cobind
Inherited from
Comonad
def compose[G[_]](implicit G0: Functor[G]): Functor[[α] =>> F[G[α]]]

The composition of Functors F and G, [x]F[G[x]], is a Functor

The composition of Functors F and G, [x]F[G[x]], is a Functor

Inherited from
Functor
def copoint[A](p: F[A]): A

Also known as extract / copure

Also known as extract / copure

Inherited from
Comonad
final
def copure[A](p: F[A]): A

alias for copoint

alias for copoint

Inherited from
Comonad
def counzip[A, B](a: F[A] \/ F[B]): F[A \/ B]
Inherited from
Functor
final
def extend[A, B](fa: F[A])(f: F[A] => B): F[B]
Inherited from
Cobind
def fpair[A](fa: F[A]): F[(A, A)]

Twin all As in fa.

Twin all As in fa.

Inherited from
Functor
def fproduct[A, B](fa: F[A])(f: A => B): F[(A, B)]

Pair all As in fa with the result of function application.

Pair all As in fa with the result of function application.

Inherited from
Functor
Inherited from
Functor
def icompose[G[_]](implicit G0: Contravariant[G]): Contravariant[[α] =>> F[G[α]]]

The composition of Functor F and Contravariant G, [x]F[G[x]], is contravariant.

The composition of Functor F and Contravariant G, [x]F[G[x]], is contravariant.

Inherited from
Functor
def lift[A, B](f: A => B): F[A] => F[B]

Lift f into F.

Lift f into F.

Inherited from
Functor
def map[A, B](fa: F[A])(f: A => B): F[B]

Lift f into F and apply to F[A].

Lift f into F and apply to F[A].

Inherited from
Functor
def mapply[A, B](a: A)(f: F[A => B]): F[B]

Lift apply(a), and apply the result to f.

Lift apply(a), and apply the result to f.

Inherited from
Functor
def product[G[_]](implicit G0: Functor[G]): Functor[[α] =>> (F[α], G[α])]

The product of Functors F and G, [x](F[x], G[x]]), is a Functor

The product of Functors F and G, [x](F[x], G[x]]), is a Functor

Inherited from
Functor
def strengthL[A, B](a: A, f: F[B]): F[(A, B)]

Inject a to the left of Bs in f.

Inject a to the left of Bs in f.

Inherited from
Functor
def strengthR[A, B](f: F[A], b: B): F[(A, B)]

Inject b to the right of As in f.

Inject b to the right of As in f.

Inherited from
Functor
def void[A](fa: F[A]): F[Unit]

Empty fa of meaningful pure values, preserving its structure.

Empty fa of meaningful pure values, preserving its structure.

Inherited from
Functor
def widen[A, B](fa: F[A])(implicit ev: Liskov[A, B]): F[B]

Functors are covariant by nature, so we can treat an F[A] as an F[B] if A is a subtype of B.

Functors are covariant by nature, so we can treat an F[A] as an F[B] if A is a subtype of B.

Inherited from
Functor
def xmap[A, B](fa: F[A], f: A => B, g: B => A): F[B]
Inherited from
Functor
def xmapb[A, B](ma: F[A])(b: Bijection[A, B]): F[B]

Converts ma to a value of type F[B] using the provided bijection.

Converts ma to a value of type F[B] using the provided bijection.

Inherited from
InvariantFunctor
def xmapi[A, B](ma: F[A])(iso: IsoSet[A, B]): F[B]

Converts ma to a value of type F[B] using the provided isomorphism.

Converts ma to a value of type F[B] using the provided isomorphism.

Inherited from
InvariantFunctor

Inherited fields

Inherited from
Cobind
Inherited from
Comonad
Inherited from
Functor