Skip to content

Instantly share code, notes, and snippets.

@killerswan
Created September 24, 2011 19:59
Show Gist options
  • Save killerswan/1239784 to your computer and use it in GitHub Desktop.
Save killerswan/1239784 to your computer and use it in GitHub Desktop.
fn f(s : option::t<str>) {
let r = alt s {
some(ss) { { x: 123, y: ss } }
none. { fail }
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment