A cofree comonad for some functor S
, i.e. an S
-branching stream.
- Companion
- object
Value members
Abstract methods
Applies f
to the head and g
through the tail.
Applies f
to the head and g
through the tail.
Concrete methods
Replaces the head with b
and applies g
through the tail.
Replaces the head with b
and applies g
through the tail.
Alias for head
, for compatibility with Scalaz 6
Alias for head
, for compatibility with Scalaz 6
Redecorates the structure with values representing entire substructures.
Redecorates the structure with values representing entire substructures.
Redecorates this structure with a computation whose context is the entire structure under that value.
Redecorates this structure with a computation whose context is the entire structure under that value.
Alias for head
, for compatibility with Scalaz 6
Alias for head
, for compatibility with Scalaz 6
Changes the branching functor with the given natural transformation, using the source branching functor's fmap.
Changes the branching functor with the given natural transformation, using the source branching functor's fmap.
Changes the branching functor with the given natural transformation, using the target branching functor's fmap.
Changes the branching functor with the given natural transformation, using the target branching functor's fmap.
Modifies the first branching with the given natural transformation.
Modifies the first branching with the given natural transformation.
Folds over this cofree structure, returning all the intermediate values in a new structure.
Folds over this cofree structure, returning all the intermediate values in a new structure.
Returns the components of this structure in a tuple.
Returns the components of this structure in a tuple.
Applies a function in a monad to the corresponding value in this comonad, annihilating both.
Applies a function in a monad to the corresponding value in this comonad, annihilating both.