Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Idiomatic Rust – Thinking in Iterators (corrode.dev)
3 points by praseodym on May 20, 2024 | hide | past | favorite | 1 comment


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.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: