Add an iterator that allows mapping with (next_item, Option(&peek_item). This is useful for parsers. Exact semantics may vary, but the goal is to get something like tuple_windows without needing to clone
100% credit to @talchas on Discord (I don't see that user here) for the implementation:
Add an iterator that allows mapping with
(next_item, Option(&peek_item)
. This is useful for parsers. Exact semantics may vary, but the goal is to get something liketuple_windows
without needing to clone100% credit to @talchas on Discord (I don't see that user here) for the implementation: