Created
August 23, 2016 17:23
-
-
Save erica/0819579b9a79f61ffa206154c9eb555c to your computer and use it in GitHub Desktop.
This file contains 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
// Usage | |
func usage() -> Never { | |
print("Usage: \(appName) <list-of-positive-integers>") | |
exit(-1) | |
} | |
guard !arguments.isEmpty, | |
nums.count == arguments.count else { usage() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment