phobos/std/algorithm
Johan Engelen acb4c7838c
Fix intentional discarding of return value in topN
This fixes a warning one gets when compiling with warnings enabled:
"phobos/std/algorithm/sorting.d(3122): Warning: calling testcase.foo.__lambda1 without side effects discards return value of type bool, prepend a cast(void) if intentional"

Testcase that fails compilation with `-w`:
```
import std.algorithm.sorting;

auto foo() {
    int[] v = [ 25, 7, 9, 2, 0, 5, 21 ];
    return topN!((a, b) => a > b)(v, 100);
}
```
2017-12-15 00:10:49 +01:00
..
comparison.d Start removing std.{json,zip,zlib,algorithm.mutation} 2017-12-01 09:28:05 +01:00
internal.d Revert "Sort selective imports" 2017-06-13 17:51:52 +00:00
iteration.d Merge pull request #3892 from JackStouffer/mean 2017-11-22 05:18:03 +01:00
mutation.d Start removing std.{json,zip,zlib,algorithm.mutation} 2017-12-01 09:28:05 +01:00
package.d Add documentation and unittests regarding multisets 2017-07-21 10:12:16 +03:00
searching.d Merge pull request #5576 from wilzbach/algo-skipover 2017-12-02 14:31:26 +01:00
setops.d Get rid of unused variables in std/algorithm 2017-08-02 17:30:16 +03:00
sorting.d Fix intentional discarding of return value in topN 2017-12-15 00:10:49 +01:00