-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add sequtils.unzip
to complement sequtils.zip
#13429
Conversation
I would suggest |
Just FYI these two things should do essentially the same thing. |
lib/pure/collections/sequtils.nim
Outdated
@@ -281,6 +281,21 @@ when (NimMajor, NimMinor) <= (1, 0): | |||
else: | |||
zipImpl(s1, s2, seq[(S, T)]) | |||
|
|||
proc unzip*[S, T](s: openArray[(S, T)]): (seq[S], seq[T]) = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a .since
annotation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@Vindaar Thanks I wasn't aware of that. I thought that the |
Co-Authored-By: Vindaar <basti90@gmail.com>
Thanks to @def- for the suggestion.
dde5fba
to
d98f4af
Compare
I have now reverted back to using |
[EDIT] not true, see #13448 (using |
Wait, what? 😨 |
No description provided.