tuple_zip

Crates.iotuple_zip
lib.rstuple_zip
version0.1.0
sourcesrc
created_at2022-12-22 05:04:47.109054
updated_at2022-12-22 05:04:47.109054
descriptionConvert a tuple of iterators into an iterator of tuples
homepage
repositoryhttps://github.com/Cyborus04/tuple_zip/
max_upload_size
id743680
size16,592
(Cyborus04)

documentation

README

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

Commit count: 3

cargo fmt