[go: up one dir, main page]

permutator 0.1.2

Get a permutation at any specific index from data for cartesian product and lexicographic permutation. Generate non-lexicographic k-permutation.
Documentation

This crate provide generic permutators. There's a function that can get a combination at any specific point of lexicographic ordered permutation. There's k-permutation function to generate all possible permutation. There's KPermutation struct that provide Iterator style to do k-Permutation over data. There's HeapPermutation struct that provide Iterator style permutation iterator. There's a GosperCombination struct that provide Iterator style combination iterator.

The simplest usage is call k_permutation function.