Skip to content

Is find_iter guaranteed to return results in the order they appear in the haysack? #1224

Answered by BurntSushi
lvella asked this question in Q&A
Discussion options

You must be logged in to vote

Yes. That's what "successive" in the docs means:

Returns an iterator that yields successive non-overlapping matches in the given haystack.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants