Skip to content

Instantly share code, notes, and snippets.

@an0
Created August 6, 2015 20:15
Show Gist options
  • Select an option

  • Save an0/2b50113cf296cd95d4ab to your computer and use it in GitHub Desktop.

Select an option

Save an0/2b50113cf296cd95d4ab to your computer and use it in GitHub Desktop.
Case-condition is Powerful
for case (let x, 0) in [(0, 0), (0, 1), (1, 0), (1, 1)] where x > 0 {
print(x)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment