Function cartesianProduct

  • List cartesian product of sets.

    Type Parameters

    • T

    • U = Set<T>

    Parameters

    • xs: Set<T>[]

      sets

    • fm: MapFunction<Set<T>, U | Set<T>> = null

      map function (vs, vs)

    Returns IterableIterator<Set<T> | U>

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

Generated using TypeDoc