unzip-array-of-tuple
v0.1.0 GrowingThis package currently provides one function that takes in an array containing tuples of two types; the function then returns two arrays, the first containing all the first elements of the tuples, and the second array containing the second elements of the tuples. This functionality is available in iterators through unzip, but unzip can only return collections which implement Extend; which primitive arrays do not. Therefore, unzip works fine for Vec or other dynamic types, but not for simple, beautiful arrays, with lengths known at compiletime. My implementation is hopefully quite efficient, as it just moves data around, without using too much costly abstractions like std::array::from_fn. This crate has 4 tests that I think cover basically everything; still it could be unsound..
Quick Verdict
- โNot updated for 3+ years
- !Pre-1.0: API may have breaking changes
- โTiny footprint (2KB, 0 deps)
- โPermissive license (MIT OR Apache-2.0)
Security
Deep Insights
21 downloads in the last 30 days (1/day), up 50% from the previous period.
Despite being 3+ years old, unzip-array-of-tuple hasn't reached 1.0 yet. Expect potential API changes between versions.
unzip-array-of-tuple has no external dependencies โ minimal supply chain risk and fast compile times.
At 2KB, unzip-array-of-tuple is lightweight. Small crate size correlates with focused, well-scoped functionality.
Health Breakdown
Recency, release consistency, active ratio
Yanked ratio, deps, size, maturity, features
Reverse deps, ownership, ecosystem
Downloads, momentum, growth trend
Docs, repo, license, metadata