slice-ext
Slice extensions for rust, this is intended to be extended as more useful primitives are identified.
Status
Work in progress, would be good to genericise over AsRef<T> instead of &'a [T], should work tho.
Features
- split_before to split using a predicate while including the matched item at the start of each subslice if found
- split_after to split using a predicate while including the matched item at the end of the subslice if found