Apple released the first beta of Xcode 9.3, bringing with it the first release of Swift 4.1 alongside new APIs targeting iOS 11.3. This first point release of Swift 4 brings with it some useful improvements, and if you’re keen to get ahead of the game you can give them a try today.
Almost every Swift program uses collections in one way or another. Whether it's to store values to be displayed in some form of list, to keep track of observers, or caching data - collections are everywhere.
When working with collections, it's very common to use the same dataset over a sequence of operations, and continuously transform it into new values. For example, we might download some JSON data, then transform it into an array of dictionaries and finally into a collection of models.
This week, let's take a look at some of the standard library APIs that lets us easily transform collections in a very functional way.