Skip to content

Move topNIndex to std.algorithm.sorting. #2898

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

Merged
merged 4 commits into from
Jan 23, 2015
Merged

Conversation

quickfur
Copy link
Member

Add documentation and missing sig constraints.

Improve documentation and add missing sig constraints.

BUGS:
The swapping strategy parameter is not implemented yet; currently it is
ignored.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better: enforce unstable in a static assert at the top of the implementation. Then the algorithm is correct but incomplete.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, done.

andralex added a commit that referenced this pull request Jan 23, 2015
Move topNIndex to std.algorithm.sorting.
@andralex andralex merged commit ed3776a into dlang:master Jan 23, 2015
@quickfur quickfur deleted the topNIndex branch January 23, 2015 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants