Skip to content
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 sorting methods to StaticArray #10889

Merged

Conversation

HertzDevil
Copy link
Contributor

Closes #6498.

These sorting methods simply forward to to_slice, so #10163 can be implemented on top of this easily.

@straight-shoota straight-shoota added this to the 1.2.0 milestone Jul 3, 2021
@straight-shoota straight-shoota removed this from the 1.2.0 milestone Jul 26, 2021
@straight-shoota
Copy link
Member

We should postpone this until the final sort API is decided in #6057

@straight-shoota
Copy link
Member

Smoke test failure is due to #11021

@beta-ziliani beta-ziliani modified the milestone: 1.2.0 Sep 28, 2021
@beta-ziliani
Copy link
Member

With #11195 being approved, we need to evaluate how much of this is still relevant.

@HertzDevil
Copy link
Contributor Author

HertzDevil commented Oct 6, 2021

All mutating methods are to stay because they enable the Slice-based optimization.

@straight-shoota straight-shoota added this to the 1.3.0 milestone Oct 11, 2021
@straight-shoota straight-shoota merged commit 6ef1355 into crystal-lang:master Oct 22, 2021
@HertzDevil HertzDevil deleted the feature/static-array-sort branch October 23, 2021 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

suggestion: add sort method to Slice and StaticArray
4 participants