Suppose we have a function with last parameter as a function type. For example ‘sort’ function, that sorts an array of strings, according to a decision function, passed as ‘isSortedPair:’ parameter. func sort(
values: [String],
isSortedPair: (s1: String, s2: String) -> Bool
)
-> [String]
{
// I use a build-in ‘sort’…