Skip to content

Instantly share code, notes, and snippets.

@PavelGnatyuk
Last active July 3, 2018 16:27
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 PavelGnatyuk/9c61c25e127da7851d1d7e21f20b8b37 to your computer and use it in GitHub Desktop.
Save PavelGnatyuk/9c61c25e127da7851d1d7e21f20b8b37 to your computer and use it in GitHub Desktop.
func goodMorning(morning: Bool, whom: String) {
if morning {
print("Good morning, \(whom)")
}
}
func giveAname() -> String {
print("giveAname() is called")
return "Robert"
}
goodMorning(morning: true, whom: giveAname())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment