iter-fns - v0.13.0
    Preparing search index...

    Function on

    • Combines the results of two arguments using a projection.

      Effectively, on(op, f)(x, y) = op(f(x), f(y)).

      Type Parameters

      • T

        type of the item

      • U

        type of the projected result

      • R

        type of the result

      Parameters

      • op: (x: U, y: U) => R

        the combiner

      • f: (x: T) => U

        the projection

      Returns (x: T, y: T) => R