mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 07:00:37 +03:00
Fix Issue 4847 - std.algorithm.topN documentation
This was a quick fix so I'm doing it online.
This commit is contained in:
parent
ba4095de5f
commit
3d5a203323
1 changed files with 2 additions and 0 deletions
|
@ -7911,6 +7911,8 @@ $(BIGOH r.length) (if unstable) or $(BIGOH r.length * log(r.length))
|
||||||
(if stable) evaluations of $(D less) and $(D swap). See also $(WEB
|
(if stable) evaluations of $(D less) and $(D swap). See also $(WEB
|
||||||
sgi.com/tech/stl/nth_element.html, STL's nth_element).
|
sgi.com/tech/stl/nth_element.html, STL's nth_element).
|
||||||
|
|
||||||
|
If $(D n >= r.length), the algorithm has no effect.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
----
|
----
|
||||||
int[] v = [ 25, 7, 9, 2, 0, 5, 21 ];
|
int[] v = [ 25, 7, 9, 2, 0, 5, 21 ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue