Skip to main content
Module

x/fae/crossProduct.ts>crossProduct

A functional module for Deno inspired from Ramda.
Latest
variable crossProduct
import { crossProduct } from "https://deno.land/x/fae@v1.1.1/crossProduct.ts";

Creates a new list out of the two supplied by creating each possible pair from the list passed as arguments.

Fae.crossProduct([1, 2, 3], ['a', 'b']); //=> [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b'], [3, 'a'], [3, 'b']]

type

CrossProduct