Skip to content

Instantly share code, notes, and snippets.

Last active October 12, 2016 14:09
What would you like to do?
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