Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dlang/phobos
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f257e8330e5b
Choose a base ref
...
head repository: dlang/phobos
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 71ee3e530317
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on May 8, 2016

  1. 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.
    rcorre committed May 8, 2016
    Configuration menu
    Copy the full SHA
    ed03b22 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2016

  1. Merge pull request #3837 from rcorre/each_improved

    Improve std.algorithm.iteration.each
    DmitryOlshansky committed May 10, 2016
    Configuration menu
    Copy the full SHA
    71ee3e5 View commit details
    Browse the repository at this point in the history
Loading