A shim for the Comonad type-class,
to be supplied by libraries such as Cats or Scalaz.
Comonad is the dual of Monad. Whereas Monads allow for
the composition of effectful functions, Comonads allow for
composition of functions that extract the value from
their context.
A shim for the
Comonad
type-class, to be supplied by libraries such as Cats or Scalaz.Comonad is the dual of Monad. Whereas Monads allow for the composition of effectful functions, Comonads allow for composition of functions that extract the value from their context.