The Blog

A Palette Cleanser


« Higher-Order Functions

Map »

Arrays in Swift are chock full of higher-order functions.

Actually, they are methods and also many of them are implemented in Sequence rather than in Array.

Blah, blah, blah.

The real point is that it's a great way to experiment with the Higher-Order functions and principles of functional programming we covered in part one of A Functional Programming Kickstart.

Chapter 4, which I've released today, is kind of a palette cleanser between that first part and the second part where we dig into map() and flatMap().

We work through examples that include filter(), sorted(), map(), compactMap(), flatMap(), and zip() and learn a few more card tricks alog the way.

If you own the book, the chapter 4 update is available for free on Gumroad.

If not, what are you waiting for? You can buy it at A Functional Programming Kickstart. And I'm still offering a discount if you need one.

Blog Index and Subscription Information