Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • How could I write my own iterator extension trait? Commented Nov 24, 2022 at 2:14
  • 2
    Stackoverflow has quite a few examples for that. This one seems decently easy to understand (though you won't need Peekable or the content of the next function there)? Commented Nov 24, 2022 at 2:28
  • 1
    Here's what I ended up making: playground. What do you think of the names I chose for the module, structs, and trait? Do you think something else would be more clear? Commented Nov 24, 2022 at 8:48