In the Introduction to the exercise under the Function Types as Parameter Types section, this example is given:
func apply3(to str: String, function f: (String, Int) -> String) -> String {
f(str,3)
}
// apply3: ([String], (String, Int) -> String) -> [String]
Are the square brackets correct in this example? I think that means <Array> String, but in both the input and the output the type is just String, unless I’m missing something.
Thanks. Happy to stand corrected or submit a PR if needed.