Extra iterator adaptors, functions and macros. Requires Rust 1.11 or later.
Please read the API documentation here
__
__ https://bluss.github.io/rust-itertools/
|buildstatus| |crates|_
.. |buildstatus| image:: https://travis-ci.org/bluss/rust-itertools.svg?branch=master .. _buildstatus: https://travis-ci.org/bluss/rust-itertools
.. |crates| image:: http://meritbadge.herokuapp.com/itertools .. _crates: https://crates.io/crates/itertools
How to use with cargo::
[dependencies]
itertools = "0.4"
How to use in your crate:
.. code:: rust
#[macro_use] extern crate itertools;
use itertools::Itertools;
How to contribute:
0.5.0-alpha.0, 0.5.0-alpha.1
Renamed:
combinations is now tuple_combinations
Partition
enum is now Either
Module reorganization:
All iterator structs are under itertools::structs
but also
reexported to the top level, for backwards compatibility
All free functions are reexported at the root, itertools::free
will
be removed in the next version
Removed:
ZipSlices, use .zip() instead
new
constructors on iterator structs, use Itertools trait or free
functions insteaditertools::size_hint
is now private
Behaviour changes:
format and format_with helpers now panic if you try to format them more than once.
repeat_call
is not double ended anymore
New features:
tuple flattening iterator is constructible with cons_tuples
Either
from the either
crate. Either<L, R>
is an iterator when L, R
are.MinMaxResult
now implements Copy and Clone0.4.19
.minmax_by()
itertools::free::cloned
itertools::free::rciter
.step(n)
slightly to take advantage of specialized Fuse better.0.4.18
Only changes related to the "unstable" crate feature. This feature is more or less deprecated.
Use deprecated warnings when unstable is enabled. .enumerate_from() will be removed imminently since it's using a deprecated libstd trait.
0.4.17
0.4.16
0.4.15
0.4.14
0.4.13
0.4.12
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
itertools::free
with free function variants of common
iterator adaptors and methods.
For example enumerate(iterable)
, rev(iterable)
, and so on.0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
Breaking changes:
Return types of .merge() and .merge_by() renamed and changed
0.3.25
0.3.24
0.3.23
0.3.22
0.3.21
Debug
impl for Format
, it will have different use later0.3.20
0.3.19
0.3.17
0.3.16
0.3.15
0.3.14
0.3.13
0.3.11
0.3.10
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
Dual-licensed to be compatible with the Rust project.
Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.