fn apply_length_out_cloneable<T: Clone>( v: Vec<T>, length_out: Option<i64>, ) -> Result<Vec<T>, RError>
Truncate or cycle-extend a Vec<T: Clone> to the requested length.out.
length.out