Skip to main content

vec_take

Function vec_take 

Source
pub fn vec_take<T: Clone>(v: &[T], n: usize) -> Vec<T>
Expand description

Take up to n elements from the front of a slice.