DEV Community

Discussion on: Learning Rust #1: Pattern Matching

Collapse
 
rsalmei profile image
Rogério Sampaio de Almeida

You do not need to match all elements in an iterator to skip some. Just filter() them out, or in your case using Option, just flatten()! 👍