Last active
March 23, 2017 15:36
-
-
Save steverob/c98114c901fbe7ad255aae7af4b14eb3 to your computer and use it in GitHub Desktop.
Option post - Rust Adventures
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
match find_index(names, element) { | |
Some(i) => println!("Name is at {}", i), | |
None => println!("Name is not found"), | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment