logoalt Hacker News

tyiloyesterday at 11:01 PM1 replyview on HN

You probably just want to use `.peekable()`: https://doc.rust-lang.org/stable/std/iter/trait.Iterator.htm...


Replies

SkiFire13today at 11:49 AM

Note that `peekable` will most likely break autovectorization