Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

strong-roots-capital/sorted-cartesian-product

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sorted-cartesian-product Build status npm version codecov

Cartesian product of a list including only sorted elements

Install

npm install @strong-roots-capital/sorted-cartesian-product

Use

import { sortedCartesianProduct } from '@strong-roots-capital/sorted-cartesian-product'

let array = [1, 2, 3]
sortedCartesianProduct(array))
//=> [[ 1, 2 ], [ 1, 3 ], [ 2, 3 ]]