• Extends the store with the extracting function fn with comonad W.

    Type Parameters

    • W

    Parameters

    • comonad: Comonad<W>

      The instance of Comonad for W.

    Returns (<S, A, B>(fn) => ((store) => StoreT<S, W, B>))

    The extended store.

      • <S, A, B>(fn): ((store) => StoreT<S, W, B>)
      • Type Parameters

        • S

        • A

        • B

        Parameters

        • fn: ((store) => B)
            • (store): B
            • Parameters

              Returns B

        Returns ((store) => StoreT<S, W, B>)

Generated using TypeDoc