Skip to content

Instantly share code, notes, and snippets.

@CastIrony
Created August 24, 2016 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save CastIrony/e86fb261686dfcb76764aa8ea877a68c to your computer and use it in GitHub Desktop.
Save CastIrony/e86fb261686dfcb76764aa8ea877a68c to your computer and use it in GitHub Desktop.
guard
!arguments.isEmpty,
nums.count = arguments.count
else
{
print("Usage: \(appName) <list-of-positive-integers>")
exit(-1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment