many-unzip
Like Iterator::unzip with the Extend trait (since Rust 1.85) or itertools::multiunzip, but without the 12 tuples limitation (up to 192 tuples).
Converts an iterator of tuples into a tuple of containers, many_unzip() consumes an entire iterator of k-tuples tuples, producing k collections, one for each column.
With default features, many_unzip supports up to 24-tuples.
Larger numbers can be enabled with feature flags, up to 192-tuples with the 192_tuple feature.
This function is, in some sense, the opposite of itertools::multizip.
# use many_unzip;
let inputs = vec!;
let : = many_unzip;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;