After writing in Swift for about a year almost exclusively, I sometimes forget how concise it is compared to Objective-C. Especially when you use similar safety features like nullability and designated initializer declarations.
I saw a few tweets and questionings recently about the nonmutating keyword in swift. I had to confront it sometime in the past so I will try to expose a justification of it’s existence with a simple example.
Today’s article is the zip, map, and reduce functions in Swift. Let’s walkthrough a typical problem that you might come across in your coding endeavors.