Function cartesianProduct

  • List cartesian product of maps.

    Type Parameters

    • K

    • V

    • W = Map<K, V>

    Parameters

    • xs: Map<K, V>[]

      maps

    • fm: MapFunction<number, Map<K, V>, W | Map<K, V>> = null

      map function (vs, i)

    Returns IterableIterator<Map<K, V> | W>

    x₀ × x₁ × ... = {{[k₀, v₀], [k₁, v₁], ...} | [k₀, v₀] ∈ x₀, [k₁, v₁] ∈ x₁, ...]}

Generated using TypeDoc