Commit d292fa0
committed
k_smallest: Document the equivalence with self.sorted().take(k)
Consistency with `Iterator::take` is the rationale for returning
less than `k` elements when the input is too short.1 parent b0443e0 commit d292fa0
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2298 | 2298 | | |
2299 | 2299 | | |
2300 | 2300 | | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
2301 | 2304 | | |
2302 | 2305 | | |
2303 | 2306 | | |
| |||
0 commit comments