Skip to content

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