Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created June 18, 2020 15:59
Show Gist options
  • Save stevencurtis/ba8ef46546d7847e9f9285589e8f2461 to your computer and use it in GitHub Desktop.
Save stevencurtis/ba8ef46546d7847e9f9285589e8f2461 to your computer and use it in GitHub Desktop.
doThis
func doThis(a: String, thenThis: (String)->()) {
print ("this")
thenThis(a)
}
let completion: (String) -> () = { b in
print ("then this \(b)")
}
func completionFunction (b: String) {
print ("then this function \(b)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment