tuple_zip 0.1.0

Convert a tuple of iterators into an iterator of tuples
Documentation
  • Coverage
  • 50%
    2 out of 4 items documented1 out of 3 items with examples
  • Size
  • Source code size: 16.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 566.91 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Cyborus04/tuple_zip
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Cyborus04

tuple_zip

A crate for converting a tuple of iterators into an iterator of tuples

use tuple_zip::TupleZip;

let a = [1, 2, 3, 4];
let b = [5, 6, 7];
let c = ["x", "y", "z"];

let zipped = (a, b, c).tuple_zip();

let expected = [(1, 5, "x"), (2, 6, "y"), (3, 7, "z")];
assert!(zipped.eq(expected));

Licensed under Apache-2.0 or MIT, at your choice