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

Proposal: fold_self and try_fold_self for Iterators #65222

Merged
merged 4 commits into from
Mar 27, 2020

Commits on Mar 26, 2020

  1. Add fold_self

    - Added `Iterator::fold_first`, which is like `fold`, but uses the first element in the iterator as the initial accumulator
    - Includes doc and doctest
    - Rebase commit; see rust-lang#65222 for details
    
    Co-Authored-By: Tim Vermeulen <tvermeulen@me.com>
    2 people authored and Dylan-DPC committed Mar 26, 2020
    Configuration menu
    Copy the full SHA
    9b429fd View commit details
    Browse the repository at this point in the history
  2. fix docs

    Dylan-DPC committed Mar 26, 2020
    Configuration menu
    Copy the full SHA
    a9a2a31 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2020

  1. simplify test

    Dylan-DPC committed Mar 27, 2020
    Configuration menu
    Copy the full SHA
    7e7c2f1 View commit details
    Browse the repository at this point in the history
  2. remove unused import

    Dylan-DPC committed Mar 27, 2020
    Configuration menu
    Copy the full SHA
    268408f View commit details
    Browse the repository at this point in the history