Permutations
Return all permutations of length k (default full length) of a collection.
Wikipedia
PermutationMathWorldPermutationWikidataQ161519Encyclopedia of MathematicsPermutationnLabpermutationBritannicatopic/permutationOEISA000142Wolfram LanguageQFactorialSageMathPermutations(n)SymPygenerate_bellmathlib4Equiv.Perm (Fin n)MATLABpermsRosetta CodePermutationsPermutations(xs, k)The permutations of length k (default full length) of a collection, as compute-engine declares it.Permutations(n)The permutations of as one-line words: the collection SymmetricGroup(n).Typed signatures
| Type | Package | Applies |
|---|---|---|
((S, integer?) -> list<string> where S: string) & ((collection, integer?) -> list<list>) | compute-engine | always |
((S, integer?) -> list<string> where S: string) & ((collection, integer?) -> list<list>) & ((integer<0..>) -> indexed_collection<permutation>) | combinatoricsreplaces compute-engine | always |
Examples
About
| Examples | 1 |
|---|---|
| Crosswalk | WikipediaMathWorldWikidataEncyclopedia of MathematicsnLabBritannicaOEISWolfram LanguageSageMathSymPymathlib4MATLABRosetta Code |
See also: SymmetricGroup