Skip to content

Instantly share code, notes, and snippets.

@bstrie
Created October 25, 2012 16:00
Show Gist options
  • Save bstrie/3953654 to your computer and use it in GitHub Desktop.
Save bstrie/3953654 to your computer and use it in GitHub Desktop.
match x {
x < 0 => -1,
x > 0 => 1,
0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment