itertools
itertools copied to clipboard
Extra iterator adaptors, iterator methods, free functions, and macros.
```rust fn try_unzip(self) -> Result where FromA: Default + Extend, FromB: Default + Extend, Self: Iterator, { ... } ``` As with my previous feature request, I'd be willing to...
I added a fairly simple yet informative `fmt::Debug` implementation to the `Diff` enum. The reasoning behind this is to simplify tests where you just want to say: ```rust // Diff...
I think this would be a useful addition. ```rust pub fn assert_empty(i: impl IntoIterator) where I: Debug + PartialEq, { assert_equal(i, iter::empty::()); } ``` Except it probably needs to have...
This is an iterator that is a mix of `std::slice::chunks` and `fold`. Instead of chunking the source up into predictable lengths though, it allows the user to inspect each element...
Some questions that needs to be answared: * Document differently? * Any optimalisations? * The algorithm only requires equal Items to be grouped beside each other. This is achived by...
As of writing this, `cargo bench` apparently has problems. Looking at https://travis-ci.org/rust-itertools/itertools/jobs/647077808#L425, I think it is a problem with `criterion`.
Hello! I have implemented `nth` method for `Combinations` iterator. Closes #301 . Let me know, what do you think. Other changes in tests are due to `rustfmt`.
Hi, I'm implementing into_group_map_by which is a function that looks like GroupBy in SQL (although I'm not a fan of the name). I was wondering if the feature was welcome...
It seems that the code here doesn't follow the [Rust style guide](https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/guide.md). Maybe consider applying rustfmt and add CI step to enforce it? I think that would make people more...
I'm trying to find something similar to [Scala's Stream.diff](https://www.scala-lang.org/api/current/scala/collection/immutable/Stream.html#diff[B%3E:A](that:scala.collection.Seq[B]):C): ``` Computes the multiset difference between this sequence and another sequence. that: the sequence of elements to remove returns: a new...