More windowing functions for iterators
Rust Internals
More windowing functions for iterators
There is an ongoing effort to introduce .map_windows into iterators. However, I was wondering if Iterators would benefit for windowing functions, e.g fold_windows, like fold it contains an accumulator and current window, which you can use for a variety of things like parsing, prehaps .any_windows or several type of regular vector/slice equivalent for windows would be useful, I certainly have use cases for parsing.
0 comments
No comments yet.