#iterator #grouping #sorting #unique #loops

rollercoaster

Extra iterators for grouping, sorting, arithmetic, and more

4 releases

0.0.4 Jun 20, 2022
0.0.3 Jun 20, 2022
0.0.2 Jun 18, 2022
0.0.1 Jun 14, 2022

#1507 in Algorithms

MIT license

17KB
321 lines

Rollercoaster

Build docs.rs Crate

This crate adds extra iterators, with extension methods so you can access them from any type implementing Iterator.

Usage

Add Rollercoaster to your Cargo.toml

[dependencies]
rollercoaster = "0.0.2"

Import the trait into your module

use rollercoaster::Rollercoaster;

fn main() {
  let iter = vec![1, 2, 3].into_iter();

  // The methods are now available for us to use
  iter.memory();
}

Contributing

Please create a github issue if you run into any problems.

No runtime deps