Skip to content

Instantly share code, notes, and snippets.

@dolphinsue319
Created October 10, 2015 08:48
Show Gist options
  • Save dolphinsue319/8492ddd1499b210ea8c4 to your computer and use it in GitHub Desktop.
Save dolphinsue319/8492ddd1499b210ea8c4 to your computer and use it in GitHub Desktop.
我們最後希望可以得到這樣的結果
let x: Int = 1
switch x {
case greaterThan(0):
print("positive")
case lessThan(0):
print("negative")
default:
print("0")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment