use cratefactorial;
/// Calculates the number of permutations (`nPr`) of `n` items taken `r` at a time.
///
/// # Arguments
///
/// * `n` - The total number of items.
/// * `r` - The number of items to select.
///
/// # Panics
///
/// Panics if `n` is less than `r`.
///
/// # Examples
///
/// ```
/// use numberlab::formula::arithmetic::permutation;
///
/// assert_eq!(permutation(10, 2), 90);
/// assert_eq!(permutation(5, 3), 60);
/// ```