Crates.io | tuple_zip |
lib.rs | tuple_zip |
version | 0.1.0 |
source | src |
created_at | 2022-12-22 05:04:47.109054 |
updated_at | 2022-12-22 05:04:47.109054 |
description | Convert a tuple of iterators into an iterator of tuples |
homepage | |
repository | https://github.com/Cyborus04/tuple_zip/ |
max_upload_size | |
id | 743680 |
size | 16,592 |
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