Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use for_each to extend collections #59740

Merged
merged 1 commit into from
Apr 7, 2019
Merged

Commits on Apr 5, 2019

  1. Use for_each to extend collections

    This updates the `Extend` implementations to use `for_each` for many
    collections: `BinaryHeap`, `BTreeMap`, `BTreeSet`, `LinkedList`, `Path`,
    `TokenStream`, `VecDeque`, and `Wtf8Buf`.
    
    Folding with `for_each` enables better performance than a `for`-loop for
    some iterators, especially if they can just forward to internal
    iterators, like `Chain` and `FlatMap` do.
    cuviper committed Apr 5, 2019
    Configuration menu
    Copy the full SHA
    0730a01 View commit details
    Browse the repository at this point in the history