When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.
appzyard.com
Higher Order Functions in Swift (Sorted, Map, Filter, Reduce):
Sorted : If we call sorted on an array it will return a new array that sorted in ascending order. Map : Mapping is similar to sort in that it iterates through the array that is calling it, but instead of sorting it changes each element of the array based on the closure passed to the method. Filter : It will return an array that has only elements that pass your filter specified in your closure. Reduce : It allows you to combine all the elements in an array and return an object of any type