array_chunks 1.0.0

adds array_chunks back in
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
### After array_chunks was brutally taken from us in [#143289]https://github.com/rust-lang/rust/pull/143289/files, I have taken it upon myself to diligently add it back to rust.

![rust 1.88.0](https://img.shields.io/badge/rust-1.88.0-blue?style=for-the-badge&logo=rust&logoColor=white)
![rust stable](https://img.shields.io/badge/stable-green?style=for-the-badge&logo=rust&logoColor=white)

An iterator over a slice in (non-overlapping) chunks (`N` elements at a time), starting at the beginning of the slice.

```rust
use array_chunks::*;
let slice = ['l', 'o', 'r', 'e', 'm'];
let mut iter = slice.array_chunks::<2>();
assert_eq!(iter.next(), Some(&['l', 'o']));
assert_eq!(iter.next(), Some(&['r', 'e']));
assert_eq!(iter.next(), None);
```