This library does finite permutations in Java.
Permutation.cycle(0, 1).apply(List.of("a", "b", "c"));
// => ["b", "a", "c"]Permutation.cycle(0, 1).compose(2, 3);
// => (0 1) (2 3)Permutation.symmetricGroup(5).count();
// => 120Permutation group:
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This library does finite permutations in Java.
Permutation.cycle(0, 1).apply(List.of("a", "b", "c"));
// => ["b", "a", "c"]Permutation.cycle(0, 1).compose(2, 3);
// => (0 1) (2 3)Permutation.symmetricGroup(5).count();
// => 120Permutation group: