Add `.rfind()` to the `Iterator` trait

#1

Since we have both .position() and .rposition(), it is reasonable to add .rfind() as well. For str, we also have both .find() and .rfind().

2 Likes

#2

I think it’s reasonable to add both rfind and rfold and maybe more. One benefit is that the reversed versions cross over with Rev<I> (reversed iterators); Rev<I>::find calls I's rfind and so on.

0 Likes

closed #3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

0 Likes