Skip to content

Instantly share code, notes, and snippets.

@mattt
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattt/2ed8fc0baf9529d769ff to your computer and use it in GitHub Desktop.
Save mattt/2ed8fc0baf9529d769ff to your computer and use it in GitHub Desktop.
postfix operator ‽ {}
postfix func ‽ (value: Bool) -> Bool {
return arc4random_uniform(2) == 0
}
prefix operator ⸘ {}
prefix func ⸘ (value: Bool) -> Bool {
return value‽
}
let maybe = true‽ && ⸘false || ⸘true‽
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment