Understanding Map functions in Swift

In Swift we have map, flatMap and now compactMap. What do each of these functions do and how can we use them? Let’s have a look at map… Part 1:  Map The map function takes a collection (often an array) and a function, and returns an array of items from the collection with the function applied … Continue reading “Understanding Map functions in Swift”