-
-
Save cholcombe973/2889137827b9d0f4e948260ec82b8efb to your computer and use it in GitHub Desktop.
Shared via Rust Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let a = ["1", "2", "lol"]; | |
let mut iter = a.iter().filter_map(|s| s.parse().ok()).count(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment