Last active
October 12, 2016 14:08
-
-
Save edopelawi/945e01934d196ed2106188ad43d4a6fc to your computer and use it in GitHub Desktop.
A sample on large body of logic inside an 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
if let name = name { | |
let uppercasedName = name.uppercased() | |
let lowercasedName = name.lowercased() | |
// And whole other code here... just imagine it yourself 😁 | |
let newName = "Sgt. " + name | |
print(createGreetings(sailorName: newName)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment