Alias for extend
Replaces the head with b
and applies g
through the tail.
Alias for head
, for compatibility with Scalaz 6
Redecorates the structure with values representing entire substructures.
Redecorates this structure with a computation whose context is the entire structure under that value.
Alias for head
, for compatibility with Scalaz 6
Injects a constant value into this structure.
Changes the branching functor by the given natural transformation.
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.
Alias for tail
, for compatibility with Scalaz 6
Folds over this cofree structure, returning all the intermediate values in a new structure.
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 f
to a value in this comonad and a corresponding value in the dual monad, annihilating both.
A cofree comonad for some functor
S
, i.e. anS
-branching stream.