Type alias ReduceFunction<K, V, W>

ReduceFunction<K, V, W>: ((acc: W, v: V, k: K, x: Lists<K, V>) => W)

Type Parameters

  • K

  • V

  • W

Type declaration

    • (acc: W, v: V, k: K, x: Lists<K, V>): W
    • Handle reduction of multiple values into a single value.

      Returns

      reduced value

      Parameters

      • acc: W

        accumulator (temporary result)

      • v: V

        value in lists

      • k: K

        key of value in lists

      • x: Lists<K, V>

        lists containing the value

      Returns W

Generated using TypeDoc