Type alias ReduceFunction<T, U>

ReduceFunction<T, U>: ((acc, v, k, x) => U)

Type Parameters

  • T

  • U

Type declaration

    • (acc, v, k, x): U
    • Handle reduction of multiple values into a single value.

      Parameters

      • acc: U

        accumulator (temporary result)

      • v: T

        value in set

      • k: T

        key of value in set (= value)

      • x: Set<T>

        set containing the value

      Returns U

      reduced value

Generated using TypeDoc