Crates.io | robin_merge |
lib.rs | robin_merge |
version | 0.1.1 |
source | src |
created_at | 2022-12-07 17:41:43.067413 |
updated_at | 2022-12-07 18:10:53.93323 |
description | A Rust crate for merging vectors round-robin style. |
homepage | |
repository | https://codeberg.org/imbev/robin_merge |
max_upload_size | |
id | 732007 |
size | 4,397 |
robin_merge
is a Rust crate for merging vectors round-robin style.
robin_merge::merge_vectors
merges a vector of vectors of values into a single vector of values round-robin style. The type of the values in the vectors must implement Copy
.
let vec_1 = vec![1,2];
let vec_2 = vec![3,4];
let merged = robin_merge::merge_vectors(&vec![vec_1, vec_2]);
assert_eq!(merged, vec![1,3,2,4])