Function cartesianProduct

  • Obtain cartesian product of arrays.

    Type Parameters

    • T

    • U = T

    Parameters

    • xs: T[][]

      arrays

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

      map function (vs, i)

    Returns (T[] | U)[]

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

Generated using TypeDoc