-
-
Save edopelawi/36b73fb085de8e3bb9e62e5443920c4a to your computer and use it in GitHub Desktop.
A sample function and optional variable in Swift.
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
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