5 releases
Uses old Rust 2015
0.1.4 | Sep 9, 2017 |
---|---|
0.1.3 | Sep 9, 2017 |
0.1.2 | Sep 9, 2017 |
0.1.1 | Sep 9, 2017 |
0.1.0 | Sep 9, 2017 |
#73 in #chunks
11KB
189 lines
RChunks
(Reverse- or Right-) chunk producer for slices.
Feature requests, additional tests or documentation, or other pull requests are welcome.
lib.rs
:
rchunks - a simple method for right-to-left non-overlapping windows of a slice.
This crate's methods differ from .chunks().rev() in how it handles slices that are not a multiple of the chunk size: with .chunks().rev() the smaller lot will come from the end of the slice, whereas with .rchunks() the smaller lot will come from the beginning.
To use this crate, import the RChunks
trait.
use rchunks::RChunks;