split method
Returns an iterator over subslices separated by elements that match pred. The matched element is not contained in the subslices. see splitInclusive also.
Implementation
Iter<Slice<T>> split(bool Function(T) pred) {
return Iter(_splitHelper(pred).iterator);
}