phobos/std/algorithm
RazvanN7 d2c7d3761b Issue 8573 - A simpler Phobos function that returns the index of the mix or max item
Issue 8573 - A simpler Phobos function that returns the index of the mix or max item

added some review fixes

fixed an issue with a mutable variable

Applied review feedback

Renamed functions to minIndex and maxIndex + used sizediff_t for return value type

Updated function so that it works optimally even for lazy ranges and algorithms

Reverted to having only copyable elements in ranges

Added more unittests; implemented an array path; fixed documentation

Squashed commits
2016-12-16 11:11:07 +02:00
..
comparison.d Disallow known empty ranges to be compared against a range with incompatible front 2016-10-22 16:24:18 +01:00
internal.d
iteration.d Use void for auto function without return statement 2016-12-08 12:32:14 +01:00
mutation.d Style fix: add whitespace after if/while 2016-12-08 01:46:46 +01:00
package.d Revert "Add new function std.algorithm.iteration : cumulativeSum" 2016-11-10 08:38:43 +02:00
searching.d Issue 8573 - A simpler Phobos function that returns the index of the mix or max item 2016-12-16 11:11:07 +02:00
setops.d Enforce Allman style for do { 2016-12-09 17:40:50 +01:00
sorting.d Issue 14294 - partialSort should also accept two ranges 2016-12-12 17:18:18 +02:00