Created
June 18, 2020 15:59
-
-
Save stevencurtis/ba8ef46546d7847e9f9285589e8f2461 to your computer and use it in GitHub Desktop.
doThis
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 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