Created
October 14, 2017 01:52
-
-
Save d-date/b37315cef68e05091c9dc20f39107c3a to your computer and use it in GitHub Desktop.
予告 #swift_day #CodePiece
This file contains 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 BinaryInteger { | |
var isEven: Bool { | |
return self % 2 == 0 | |
} | |
} | |
arc4random_uniform(10).isEven |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment