js-combinatorics

Simple combinatorics like power set, combination, and permutation in JavaScript

extra-array

An array is a collection of values, stored contiguously.
extraarrayaccumulateallOfanyOfappendappend$atbackclonecountAsendsWithfindAllfindIndexfindLastIndexfirstfromfrom$fromApplyfromCallfrontgroupToMapinfixleftmaxmaxEntryminminEntrypartitionAspermutationpermutation$permute$popBackpopBack$popFrontpopFront$prefixprependprepend$pushBackpushBack$pushFrontpushFront$rightsearchAdjacentDuplicatesearchMismatchshuffle$sizestartsWithsubsequencesuffixtoReversedtoSortedtoSplicedvaluewithCombineFunctionCompareFunctionEndFunctionEntriesIEntriesIListsListsMapFunctionProcessFunctionReadFunctionReduceFunctionSwapFunctionTestFunctionadjacentCombineadjacentCombine$cartesianProductchunkclear$compareconcatconcat$copycopy$copyWithincopyWithin$countcountEachcutcutAtcutAtRightcutRightcycledeepClonedifferencedropdropRightdropWhiledropWhileRightentrieseveryexclusiveScanexclusiveScan$fillfill$filterfilter$filterAtfindfindRightflatflatMapforEachfromApplicationfromInvocationfromIterablefromIterable$fromRangegetgetAllgetPathgrouphasInfixhasPathhasPermutationhasPrefixhasSubsequencehasSuffixhasUnsortedValuehasValueheadientriesiinfixesikeysincludesinclusiveScaninclusiveScan$indexindexOfindexRangeinfixesinitinterleaveintermixinterpolateintersectionintersperseipermutationsiprefixesisisDisjointisEmptyisEqualisSortedisUniqueisubsequencesisuffixesivaluesjoinkeyslastlastIndexOflengthmapmap$maximummaximumEntriesmaximumEntrymaximumsmiddleminimumminimumEntriesminimumEntryminimumsmoveWithinmoveWithin$partialSortpartialSort$partitionpartitionEachpermutationspoppop$prefixespushpush$randomInfixrandomPermutationrandomPermutation$randomPrefixrandomSubsequencerandomSuffixrandomValuerangerangeEntriesrangedPartialSortrangedPartialSort$rangedSortrangedSort$reducereduceRightrejectreject$rejectAtremoveremove$removePath$repeatresize$reversereverse$rotaterotate$scanUntilscanUntilRightscanWhilescanWhileRightsearchsearchAdjacentDuplicateValuesearchAllsearchInfixsearchInfixAllsearchInfixRightsearchMaximumValuesearchMaximumValuessearchMinimumValuesearchMinimumValuessearchMismatchedValuesearchRightsearchSubsequencesearchUnsortedValuesearchValuesearchValueAllsearchValueRightsetset$setPath$shallowCloneshiftshift$sliceslice$somesortsort$splicesplice$splitsplitAtsubsequencessuffixesswapswap$swapRangesswapRanges$symmetricDifferencetailtaketakeRighttakeWhiletakeWhileRightunionunion$uniqueunshiftunshift$valueszip