Created
June 7, 2014 04:23
-
-
Save jgallagher/051a7cc5952add2a8c50 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension Int : LogicValue { | |
| func getLogicValue() -> Bool { | |
| return self % 2 == 0 | |
| } | |
| } | |
| if !3 { | |
| let x = "odd is false" | |
| } | |
| if 4 { | |
| let x = "even is true" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👏 I hereby award you the Evil Hack of the Moment Award™! ⭐