Skip to content

Instantly share code, notes, and snippets.

@erica
Created August 23, 2016 17:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save erica/0819579b9a79f61ffa206154c9eb555c to your computer and use it in GitHub Desktop.
// 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