It is always possible to infer parameter types and return type when passing a closure to a
function as an inline closure expression. As a result, you rarely need to write an inline
closure in its fullest form.
Nonetheless, you can make the types explicit if you wish, and doing so is encouraged if it
avoids ambiguity for readers of your code. In the case of the sort function, the purpose of
the closure is clear from the fact that sorting is taking place, and it is safe for a reader to
assume that the closure is likely to be working with String values, because it is assisting
with the sorting of an array of strings. omitted: