prefix

Function prefix 

Source
pub fn prefix<'a, T>(xs: &'a [T]) -> &'a [T]
Expand description

Take a symbolic-length prefix of xs. The length of the returned slice can be anywhere in the range 0 ..= xs.len().