If you're implementing an Iterator for a complex custom collection in , implement optimized `try_fold`.

This method allows keeping state during iteration more efficiently than `.next()` allows, and may optimize better.

· · Web · 0 · 2 · 4
Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!