-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reverse(zip(its...))
now checks lengths of constituent iterators fo…
…r equality (#50435) fixes #45085, fixes #25583, as per suggested by @Moelf Despite the fact that this might cause code to fail that previously worked, I think this is a bugfix not a breaking change. In particular, `Iterators.reverse` says: > Given an iterator itr, then reverse(itr) is an iterator over the same collection but in the reverse order And in many cases, the previous behavior of `reverse(::Zip)` would _not_ return "the same collection"
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters