itermore 0.4.0

🤸‍♀️ More iterator adaptors
Documentation
<!-- Generated by cargo-onedoc. DO NOT EDIT. -->

# itermore

[![Crates.io Version](https://img.shields.io/crates/v/itermore.svg)](https://crates.io/crates/itermore)
[![Docs.rs Latest](https://img.shields.io/badge/docs.rs-latest-blue.svg)](https://docs.rs/itermore)
[![Build Status](https://img.shields.io/github/workflow/status/rossmacarthur/itermore/build/trunk)](https://github.com/rossmacarthur/itermore/actions?query=workflow%3Abuild)

🤸‍♀️ More iterator adaptors.

This crate provides some useful iterator adaptors like [`array_chunks`] and
[`array_windows`]. Unlike [`itertools`](https://docs.rs/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.

```sh
cargo add itermore
```

And bring the extension traits into scope.

```rust
use itermore::prelude::*;
```

Now you can use extension methods like [`array_windows`] on any iterator.

```rust
for [a, b, c] in iter.array_windows() {
    println!("{} {} {}", a, b, c)
}
// Outputs
//    1 2 3
//    2 3 4
//    3 4 5
```

[`array_chunks`]: IterChunks::array_chunks
[`array_windows`]: IterWindows::array_windows

## License

This project is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT) for details.