Created
October 10, 2015 08:48
-
-
Save dolphinsue319/8492ddd1499b210ea8c4 to your computer and use it in GitHub Desktop.
我們最後希望可以得到這樣的結果
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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