You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.iter.next() instead of self.iter.next_back() is one obvious bug here!
ConsTuples is an internal detail of the iproduct macro and the cartesian product does not implement DoubleEndedIterator (and it can't as currently defined) so this is not used inside the crate (and won't).
No one noticed (in 8 years) such an obvious error so it's very unlikely used outside of itertools, right?
I suggest we remove the implementation (breaking change?).
Or we could fix it, add a test (and specialize rfold).
The text was updated successfully, but these errors were encountered:
I was re-considering specialize
ConsTuples::rfold
for #755 when I saw something obviously wrong:itertools/src/cons_tuples_impl.rs
Lines 26 to 32 in f60fe7e
self.iter.next()
instead ofself.iter.next_back()
is one obvious bug here!ConsTuples
is an internal detail of theiproduct
macro and the cartesian product does not implementDoubleEndedIterator
(and it can't as currently defined) so this is not used inside the crate (and won't).No one noticed (in 8 years) such an obvious error so it's very unlikely used outside of itertools, right?
I suggest we remove the implementation (breaking change?).
Or we could fix it, add a test (and specialize
rfold
).The text was updated successfully, but these errors were encountered: