Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/collections/permutations.ts

The Deno Standard Library
Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.224.0/collections/permutations.ts";

Functions

Builds all possible orders of all elements in the given array Ignores equality of elements, meaning this will always return the same number of permutations for a given length of input.