pub fn get_permutation_size(size: usize, degree: usize) -> usize
Expand description

Calculate all possible number of permutation. It’s equals to size!/(size - 1).

Parameters

  • size a size of data set to generate a permutation.
  • degree number of data set repetition.

Examples

use permutator::get_permutation_size;
 
get_permutation_size(3, 2); // return = 6
get_permutation_size(4, 2); // return = 12

See

get_permutation_for