Summary

In this lesson, we learned about the functional operations filter, map, flatMap, and reduce. Then, we learned about lazy operations and a few ways of creating them. Finally, we learned characteristics of good Swifty code.

The last three lessons of this course have been focused on the Swift Standard Library. We began with learning about the three main generic collections: Arrays, Sets, and Dictionaries, and added some useful methods to them. We also created our own collection: CountedSet. Then, we learned about text handling in Swift and working with Foundation, and added some useful String methods. We also looked at functional programming and lazy operations.

This entire course is designed to be a thorough introduction to Swift for programmers ...

Get Beginning Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.