pub(crate) fn right_rotation<T: Clone>(v: &[T]) -> Vec<T> {
    match v.split_last() {
        Some((head, tail)) => {
            let mut rrot_v = vec![head.clone()];
            rrot_v.extend_from_slice(tail);
            rrot_v
        }
        None => vec![],
    }
}
/// Perform the right notation of a vector `v`.
Perform the right notation of a vector `v`.
Perform the right notation of a vector ` v ` .
pub(crate) fn right_rotation<T: Clone>(v: &[T]) -> Vec<T> {
    match v.split_last() {
        Some((head, tail)) => {
            let mut rrot_v = vec![head.clone()];
            rrot_v.extend_from_slice(tail);
            rrot_v
        }
        None => vec![],
    }
}
pub ( crate ) fn right_rotation < T : Clone > ( v : & [ T ] ) -> Vec < T > { match v . split_last ( ) { Some ( ( head , tail ) ) => { let mut rrot_v = vec ! [ head clone ( ) ] ; rrot_v . extend_from_slice ( tail ) ; rrot_v } None => vec ! [ ] , } }
Perform the right notation of a vector `v`.
Perform the right notation of a vector ` v ` .
v
&[T]