Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@edopelawi
Last active October 12, 2016 14:09
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/36b73fb085de8e3bb9e62e5443920c4a to your computer and use it in GitHub Desktop.
Save edopelawi/36b73fb085de8e3bb9e62e5443920c4a to your computer and use it in GitHub Desktop.
A sample function and optional variable in Swift.
func createGreetings(sailorName: String) -> String {
return "👮 Ahoy, \(sailorName)! Welcome to S.S. Salty Sailor, arrr!"
}
var name: String?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment