A library for producing all possible combinations of an array. All with the question of how many ways can elements of an array be arranged. If computationally too complex will return null.
This draws back to the idea of Permutation and Combination. E.g [AB, BA]. Here, we have 1 combination and 2 permutation. Since permutation is concerned with the arrangement, where order does matter. While in combination they are considered same since order doesn't matter.
Formula for combination:
c = n!
;where
;n = number of elements
;c = number of combinations