Skip to content

Instantly share code, notes, and snippets.

@an0
Created August 6, 2015 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save an0/2b50113cf296cd95d4ab to your computer and use it in GitHub Desktop.
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