Skip to content

Instantly share code, notes, and snippets.

@dylan
Created August 26, 2016 20:40
Show Gist options
  • Save dylan/24a3903ca8a8894fb6992f97eac34e31 to your computer and use it in GitHub Desktop.
Save dylan/24a3903ca8a8894fb6992f97eac34e31 to your computer and use it in GitHub Desktop.
guard !argument.isEmpty,
nums.count == arguments.count
else {
print("Blah blah")
}
guard let someVar = someOptional,
let otherVar = otherOptional,
nums.count == arguments.count
else { return }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment