@mikuroxina/mini-fn
    Preparing search index...

    Function mapCont

    • Applies the function to transform the result of the computation.

      Examples

      Type Parameters

      • R

      Parameters

      • mapper: (r: R) => R

      Returns <A>(cont: Cont.Cont<R, A>) => Cont.Cont<R, A>

      const actual = evalCont(mapCont((x: number) => x + 1)(pure(42)));
      expect(actual).toStrictEqual(43);