• Build a new Cofree from builder.

    Type Parameters

    • F

    Parameters

    • f: Functor<F>

      The instance of Functor for F.

    Returns (<S, A>(builder) => ((init) => Cofree<F, A>))

    The new instance.

      • <S, A>(builder): ((init) => Cofree<F, A>)
      • Type Parameters

        • S

        • A

        Parameters

        • builder: ((s) => [A, Get1<F, S>])
            • (s): [A, Get1<F, S>]
            • Parameters

              • s: S

              Returns [A, Get1<F, S>]

        Returns ((init) => Cofree<F, A>)

Generated using TypeDoc