Created
July 31, 2016 13:36
-
-
Save amlcurran/94d79c8940a403770e393b5bf76e6160 to your computer and use it in GitHub Desktop.
swift-optional-chaining
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
| let optionalString: String? = nil | |
| let count = optionalString?.utf8.count // count is an optional Int |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment