Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add warning about stateful iterators to
isempty
(#43900)
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.
- Loading branch information