In functional programming languages, functions are the main building blocks. There are many requirements about how you define a function and what you can do with it. In return, you’re able to create programs that are easy to understand, debug, test, and expand, with no need to worry about concurrency issues.
Although Swift isn’t a functional programming language, its creators adopted many functional programming features. This lets you use functional programming practices to create code that’s easier to read and test, with less need for explicit thread-safety mechanisms.
Learning Objectives
You’ve already seen the functional programming higher-order functions map, filter, reduce, and sort. You learned how to use them with Swift collections in Programming in Swift: Functions & Types, where you learned the term “functional programming”. In this lesson, you’ll learn more about functional programming principles, and how you can apply them when writing Swift code:
Ohwisurijiws axs zxedineyl dqognexjebr
Pela woknkeuvl
Zagdacaqawo ryoydugvoyy qswga
Fovwruey kikhacoguuz
See forum comments
This content was released on Jul 2 2025. The official support period is 6-months
from this date.
Learn how to use functional programming principles for improved Swift code.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.