//! Permutations (Generic, Production-Grade)
//!
//! Generates all possible permutations of a given set.
//!
//! # Type Parameters
//! * `T`: Value type. Must implement `Clone`.
//!
//! # Example
//! ```rust
//! use pofk_algorithm::backtracking_algorithms::permutations::*;
//! let nums = vec![1, 2, 3];
//! let perms = permutations(&nums);
//! assert_eq!(perms.len(), 6);
//! ```