7 releases (2 stable)

1.0.1 Feb 6, 2019
1.0.0 Aug 17, 2017
0.0.5 May 24, 2015
0.0.4 Jan 3, 2015
0.0.2 Nov 25, 2014

#100 in Concurrency

Download history 21/week @ 2018-10-24 45/week @ 2018-10-31 15/week @ 2018-11-07 19/week @ 2018-11-14 12/week @ 2018-11-21 70/week @ 2018-11-28 36/week @ 2018-12-05 57/week @ 2018-12-12 74/week @ 2018-12-19 9/week @ 2018-12-26 7/week @ 2019-01-02 8/week @ 2019-01-09 4/week @ 2019-01-16 2/week @ 2019-01-23 3/week @ 2019-01-30

102 downloads per month
Used in 1 crate

MIT/Apache

5KB
78 lines

rust-iterslide

Version Docs Build Status

This package implements a "sliding window" iterator.

Sample usage:

extern crate iterslide;

use iterslide::SlideIterator;

fn main() {
    let v: Vec<i8> = vec![1, 2, 3, 4, 5];

    for window in v.slide(3) {
      println!("{:?}", window);
    }
}

Output:

[1, 2, 3]
[2, 3, 4]
[3, 4, 5]

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

No runtime deps