Hacker News new | ask | show | jobs
by catlifeonmars 387 days ago
> any pure iterator can be converted to a resumable iterator with a generic conversion function.

Makes sense

> Not all impure iterators can be resumed

How do you mean? In my head resuming an iterator is just partially unrolling a loop.

1 comments

An impure iterator can panic, so you can't resume?