Skip to content

Instantly share code, notes, and snippets.

@nikomatsakis
Created February 21, 2013 17:43
Show Gist options
  • Save nikomatsakis/5006624 to your computer and use it in GitHub Desktop.
Save nikomatsakis/5006624 to your computer and use it in GitHub Desktop.
enum Option<T> { Some(T), None }
fn gen_func<A>(...) {
let o: Option<A> = ...;
match o { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment