• Creates an action that executes writer, maps its output and adds to that value of the computation.

    Type Parameters

    • M

    Parameters

    • monad: Monad<M>

      The instance of Monad for M.

    Returns (<W, B>(mapper) => (<A>(writer) => WriterT<W, M, [A, B]>))

    The computation that adds its output to the value.

      • <W, B>(mapper): (<A>(writer) => WriterT<W, M, [A, B]>)
      • Type Parameters

        • W

        • B

        Parameters

        • mapper: ((w) => B)
            • (w): B
            • Parameters

              • w: W

              Returns B

        Returns (<A>(writer) => WriterT<W, M, [A, B]>)

          • <A>(writer): WriterT<W, M, [A, B]>
          • Type Parameters

            • A

            Parameters

            Returns WriterT<W, M, [A, B]>

Generated using TypeDoc