[][src]Function quixutils::iter::heads

pub fn heads<T>(s: &[T]) -> impl Iterator<Item = &[T]>

Provides slices of all heads. Similar to Haskell inits.