Function cartesianProduct

  • List cartesian product of iterables.

    Type Parameters

    • T

    • U = T

    Parameters

    • xs: Iterable<T>[]

      iterables

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

      map function (vs, i)

    Returns IterableIterator<T[] | U>

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

Generated using TypeDoc