-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Tracking Issue for option_array_transpose
#130828
Comments
Should there be something similar for the other way, |
This doesn't feel like a "transpose" operation to me, afaik all existing |
@Nemo157 |
That also doesn't destroy any runtime data, you can |
Regarding the name -- this seems to do a similar thing to |
@ada4a did you mean That does seem like a good possible direction, this operation is similar to the |
Hoogle tells me this thing is called But I would propose something like Originally posted by @GrigorenkoPV in #130829 (comment) |
Sorry, yes, that's what I meant.
Exactly! |
Feature gate:
#![feature(option_array_transpose)]
This is a tracking issue for the
option_array_transpose
.This feature permits going from an
[Option<T>; N]
toOption<[T; N]>
.Public API
Steps / History
[Option<T>; N]::transpose
#130829Unresolved Questions
transpose
methods), should it be named differently? Add[Option<T>; N]::transpose
#130829 (comment)Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: