Highlighted in Red looks like Computes Property has Input Parameters and Return Value.
Actually this is just a Return Value in the form of Closure (that has Input Parameters and Return Value).
Call to myCompProp returns Closure, but since we immediately call this Closure with Parameters it looks like Computed
Property is Closure.
Computed Property returns Closure
//DECLARE VARIABLES.
let greetText : String = "Hello"
var name : String = "" //Normal Variable where value is acctualy stored
//DECLARE COMPUTED PROPERTY.
var myCompProp : (String, Int) -> (String) {
var greetClosure : (String, Int) -> (String) = { name, age in return("\(name) is \(age) years old,") }
return(greetClosure)
}
//REFERENCE COMPUTED PROPERTY.
var result = myCompProp("John", 50) //myCompProp returns Closure. Then we immediately call it.
print(result)