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 who are new to the language. We hope you have found it useful and welcome you as a fellow Swift programmer.