I am attempting pass a function to another function and then have the passed function executed passing to it a variable.
Here is my code:
func showSt
try below code updated for Swift 3
func getBoolValue(number : Int, completion: (Bool)->()) { if number > 5 { completion(true) } else { completion(false) } } getBoolValue(number : 8, completion:{ result in print(result) })