#re-exports #general-purpose #collection-of-iterate

no-std iter_tools

Collection of general purpose tools to iterate. Currently it simply reexports itertools.

41 breaking releases

0.43.0 Nov 24, 2025
0.41.0 Nov 4, 2025
0.32.0 Jul 31, 2025
0.24.0 Oct 30, 2024
0.1.0 Jan 11, 2022

#152 in Algorithms

Download history 2210/week @ 2025-08-13 3077/week @ 2025-08-20 3464/week @ 2025-08-27 3861/week @ 2025-09-03 3256/week @ 2025-09-10 3028/week @ 2025-09-17 3179/week @ 2025-09-24 3502/week @ 2025-10-01 3046/week @ 2025-10-08 3055/week @ 2025-10-15 4268/week @ 2025-10-22 2682/week @ 2025-10-29 2908/week @ 2025-11-05 2821/week @ 2025-11-12 2848/week @ 2025-11-19 2347/week @ 2025-11-26

11,370 downloads per month
Used in 123 crates (22 directly)

MIT license

22KB
297 lines

Module :: iter_tools

experimental rust-status docs.rs Open in Gitpod discord

Collection of general purpose tools to iterate. Currently it simply reexports itertools.

Basic use-case

# #[ cfg( feature = "itertools" ) ]
# {
  use iter_tools::*;

  /* standard functions */
  let vec = vec![ 5, 1, -2 ];
  let min = min( &vec );
  assert_eq!( *min.unwrap(), -2 );

  /* non standard functions */
  let vec = vec![ 5, 1, -2 ];
  let added = vec![ "a", "b", "c" ];
  let mut result = vec![];
  let zipped = zip( &vec, &added );
  for ( left, right ) in zipped
  {
    result.push( ( *left, *right ) );
  }
  assert_eq!( result, vec![ ( 5, "a" ), ( 1, "b" ), ( -2, "c" ) ] );
# }

To add to your project

cargo add iter_tools

Try out from the repository

git clone https://github.com/Wandalen/wTools
cd wTools
cd examples/iter_tools_trivial
cargo run

Try out from the repository

git clone https://github.com/Wandalen/wTools
cd wTools
cd examples/iter_tools_trivial
cargo run

Dependencies

~120KB