Closed Philippe-Cholet closed 8 months ago
find usually rely on try_fold so this change should improve performance for iterators specializing find/try_fold.
find
try_fold
find/try_fold
Credits to #618, I also noticed https://github.com/phimuemue/rust-itertools/tree/simplify_find_position
find
usually rely ontry_fold
so this change should improve performance for iterators specializingfind/try_fold
.Credits to #618, I also noticed https://github.com/phimuemue/rust-itertools/tree/simplify_find_position