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

Add precision about stateful iterators to isempty #43900

Merged
merged 3 commits into from
Mar 2, 2022
Merged

Commits on Jan 23, 2022

  1. Add precision about stateful iterators to isempty

    The manual now mentions that stateful iterators should implement `isdone`,
    so it appears `isempty` is not supposed to consume elements.
    This matters a lot for callers as if you can't rely on this you can't do
    `isempty(c) && return; for x in c` but instead have to call `iterate(c)` manually.
    nalimilan committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    0f5eba6 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2022

  1. Update base/essentials.jl

    nalimilan committed Mar 2, 2022
    Configuration menu
    Copy the full SHA
    22b4486 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9cb6038 View commit details
    Browse the repository at this point in the history