-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: deprecate the unzip
function in favor of the zip
function
#3407
Comments
I think zip and unzip should be left separate even if they'd end up pointing at the same function, because they are different conceptually. |
@ayame113, do you still have this opinion? I'm slightly in favour of keeping |
deno_std's |
Is your feature request related to a problem? Please describe.
The current
zip()
is upward compatible withunzip()
. Both just transpose a 2D array.Describe the solution you'd like
How about deprecating unzip in favor of zip?
Describe alternatives you've considered
The only difference between zip and unzip is that when they receive multiple arrays of different lengths, they align to the shortest or the longest.
In Python, there is no unzip function, but instead there is a itertools.zip_longest function. How about deprecating unzip, adding
zipLongest
and resolving #1203?The text was updated successfully, but these errors were encountered: