Function take

Source
fn take<T>(slice: &[T], n: usize) -> &[T]