-
-
Save edopelawi/89b8d08417c35920a41c39bd2e873938 to your computer and use it in GitHub Desktop.
A sample on unwrapping String optional using if let statement.
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
name = "Donald Duck" | |
if let validName = name { | |
print(createGreetings(sailorName: validName)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment