0
var desc: String { return "traveling at \(currentSpeed) mph" }
can any one explain why here {} use
1 Answer
0
Probably it is a closure.
// a closure that has no parameters and return a String
var hello: () -> (String) = { return "Hello!" }
can any one explain why here {} use