Skip to content

Instantly share code, notes, and snippets.

@steverob
Last active March 23, 2017 15:36
Show Gist options
  • Save steverob/c98114c901fbe7ad255aae7af4b14eb3 to your computer and use it in GitHub Desktop.
Save steverob/c98114c901fbe7ad255aae7af4b14eb3 to your computer and use it in GitHub Desktop.
Option post - Rust Adventures
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