phobos/std/algorithm
Ryan Roden-Corrent ed03b22bc0 Support multi-arg opApply/range for each.
std.algorithm.iteration.each can now be called with a lambda taking >2
args. This should work for any input range that returns a tuple and any
type with a non-templated opApply that takes a multi-arg delegate.

Determining the arity of a templated opApply still poses a problem, so
that case is not supported.

This also adds support for `each` with two ref args.

When given a binary function that takes two args by ref,
std.algorithm.iteration.each should use both args by ref.

It was previously discarding ref on the first arg, assuming it was for
an index.

Resolves #15358.
2016-05-08 07:22:48 -04:00
..
comparison.d Merge pull request #4221 from wilzbach/min_max_element 2016-04-28 17:13:24 +04:00
internal.d fix property enforcement 2015-12-04 15:42:53 +09:00
iteration.d Support multi-arg opApply/range for each. 2016-05-08 07:22:48 -04:00
mutation.d rewrap 2016-04-30 20:30:16 +02:00
package.d Merge pull request #3972 from dcarp/std_algorithm_iteration_scan 2016-04-29 16:18:55 +04:00
searching.d std.algorithm.searching - fix weird bug in Travis 2016-04-28 17:30:05 +03:00
setops.d style fix: space between operators 2016-04-26 22:26:20 +03:00
sorting.d Fix issue 10777 - multiSort should return a SortedRange 2016-04-30 12:38:27 +03:00