itermore
🤸♀️ More iterator adaptors.
This crate provides some useful iterator adaptors like
chunks and windows. Unlike
itertools this crate provides a separate
extension trait for each adaptor. Additionally, each type of adaptor is
feature flagged so you only have to compile the features you need.
Getting started
Add the crate to Cargo manifest.
And bring the extension traits into scope.
use *;
Now you can use extension methods like windows on
any iterator.
for in iter.windows
// Outputs
// 1 2 3
// 2 3 4
// 3 4 5
License
This project is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.