Skip to content

Instantly share code, notes, and snippets.

@edopelawi
Last active October 12, 2016 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edopelawi/945e01934d196ed2106188ad43d4a6fc to your computer and use it in GitHub Desktop.
Save edopelawi/945e01934d196ed2106188ad43d4a6fc to your computer and use it in GitHub Desktop.
A sample on large body of logic inside an if let statement.
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