-
Notifications
You must be signed in to change notification settings - Fork 77
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
flatten/unflatten functionality #151
Comments
Looks good to me! |
I haven't published it yet, was attempting some other things while I was at it. The lack of const given it's implemented via a trait is a non-issue, then? |
Yeah, I used const in the gist just because I could. These methods not being const is consistent with rest of the crate, so that's ok. |
Published in v1.1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wonder if there's a way to flatten/unflatten a two-dimensional array. I think that as long as dimensions are properly enforced with the bounds, it should be safe to simply cast between them, since
GenericArray
has the same layout as core array.It is trivial to implement anywhere, but I feel like it should be a part of this crate.
The text was updated successfully, but these errors were encountered: