pub fn substrings<T>( iter: Box<dyn Iterator<Item = Result<T, Error>>>, ) -> Box<dyn Iterator<Item = Result<Vec<T>, Error>>>where T: Clone + 'static,