Skip to content

Instantly share code, notes, and snippets.

@lbrndnr
Created January 4, 2016 21:04
Show Gist options
  • Save lbrndnr/159e70222f145b51dfba to your computer and use it in GitHub Desktop.
Save lbrndnr/159e70222f145b51dfba to your computer and use it in GitHub Desktop.
infix operator --> { associativity left precedence 160 }
/// True if and only if lhs implies rhs.
/// False if lhs is true and rhs false, true otherwise.
func -->(lhs: Bool, rhs: Bool) -> Bool {
return !lhs || rhs
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment