robin_merge 0.1.1

A Rust crate for merging vectors round-robin style.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 4.07 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • imbev

robin_merge

Crates.io Docs

robin_merge is a Rust crate for merging vectors round-robin style.

Example

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])