Follow

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

doc.rust-lang.org/std/iter/tra

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

medium.com/@veedrac/rust-is-sl

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

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