take

Function take 

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

Take the first N items from a vector.