Is there a built-in way to compare two iterators?
The third party crate itertools has itertools::equal
and itertools::assert_equal
.
There's Iterator::eq
as well as various other comparison functions (lt
, ne
, etc.).
The third party crate itertools has itertools::equal
and itertools::assert_equal
.
There's Iterator::eq
as well as various other comparison functions (lt
, ne
, etc.).