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

    Function apply

    • Applies the hom X => A => B to another hom X => A.

      Type Parameters

      • X

      Returns <A, B>(f: Fn<X, (a: A) => B>) => (g: Fn<X, A>) => Fn<X, B>

      The applied hom.

      Examples

      const applier = apply<string>()((str) => (radix: number) =>
      parseInt(str, radix)
      );
      expect(applier(parseInt)("11")).toStrictEqual(12);