Skip to content

Instantly share code, notes, and snippets.

@a2
Forked from CastIrony/guard.swift
Created August 24, 2016 15:27
Show Gist options
  • Save a2/ef7d8ce08320832174cdbf3cf2223a67 to your computer and use it in GitHub Desktop.
Save a2/ef7d8ce08320832174cdbf3cf2223a67 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