Functional Refactoring in Swift

In this post, Ben Scheirman demonstrates how we can refactor some common imperative code using a functional approach. It’s good to see an example of the zip operation being used, as it’s an operation I have neglected to consider in the past.