iter_tools 0.48.0

Collection of general purpose tools to iterate. Currently it simply reexports itertools.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[ allow( unused_imports ) ]
use super::*;
#[ allow( unused_imports ) ]
use the_module::*;

//

#[ test ]
#[ cfg( feature = "enabled" ) ]
fn basic()
{
  // test.case( "basic" );
  let src = [ 1, 2, 3 ];
  let exp = ( vec![ 2, 3, 4 ], vec![ 0, 1, 2 ] );
  let got: ( Vec< _ >, Vec< _ > ) = src.iter().map( | e | ( e + 1, e - 1 ) ).multiunzip();
  assert_eq!( got, exp );
}