trotter library

Classes

Amalgams<T>
A pseudo-list of amalgams (permutations with repetition).
Combinations<T>
A pseudo-list of combinations.
Combinatorics<T>
The base class for the other classes in this library.
Compositions<T>
A pseudo-list of Compositions (combinations with repetition).
Compounds<T>
A pseudo-list of compounds.
Permutations<T>
A pseudo-list of permutations.
Storage<T>
A storage wrapper for a combinatorics instance.
Subsets<T>
A pseudolist of subsets.

Extensions

ListNumCandy on List<num>
Convenience methods to create combinatorics instances from lists of num types.
ListStringCandy on List<String>
Convenience methods to create combinatorics instances from lists of strings.
StringCandy on String

Functions

characters(String x) List<String>
Splits string x into its characters.
factorial(int n) BigInt
Calculates n!
nCr(int n, int r) BigInt
Calculates the number of combinations of r items taken from n.
nPr(int n, int r) BigInt
Calculates the number of permutations of r items taken from n.
string(List<String> x) String
Creates a string from the characters in x.