Skip to content

Instantly share code, notes, and snippets.

@morozkin
Created May 8, 2017 19:50
Show Gist options
  • Save morozkin/13171e0c6ee6f35c43a1e48c16767ab8 to your computer and use it in GitHub Desktop.
Save morozkin/13171e0c6ee6f35c43a1e48c16767ab8 to your computer and use it in GitHub Desktop.
PatternMatching3
switch "a"..."z" {
case "x":
print("Stranger things")
default:
break
}
if case "x" = "a"..."z" {
print("Stranger things")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment