from Hacker News

Idiomatic Rust – Thinking in Iterators

by praseodym on 5/20/24, 7:15 AM with 1 comments

  • by saynomore_ on 5/20/24, 9:16 PM

    What's amazing is the ability to collect iterators into both: a Vec<Result<T>> and also a Result<Vec<T>> depending on what you really want to achieve.