Function sort_it::algorithms::bogosort::bogosort_stepped
source · [−]pub fn bogosort_stepped<T>(arr: Vec<T>) -> (Vec<T>, Vec<Vec<T>>) where
T: PartialEq + PartialOrd + Clone + Copy,
Expand description
The bogosort algorithm but stepped.
Sorts the given Vec
and returns the result and a Vec
containing the steps of the process –
or dies trying.