Inout Parameters and Mutating Functions

preview_player
Показать описание
In this video I want to introduce you to and explain what an inout parameter is in Swift.

In the process, we will look at some practical use cases and also explore cases where using inout is not allowed and, how functions with inout parameters transition to mutating functions in a struct.

If you want to support my work, you can buy me a coffee :)

Table of Contents:
0:00 Introduction
1:04 The Basics
5:09 Practical Examples
9:55 Classes, Structs and Mutating Functions

Starter Project Files:
(If you are having problems downloading zip files, use Safari. Chrome restricts zip files by default)

Completed Project:

References mentioned in video:
map, compactMap, flatMap

contains, forEach, sorted

reduce, filter, removeAll

Other References:
Stewart Lynch's YouTube Channel:
Stewart Lynch on Mastodon:
Stewart Lynch on Twitter:
Stewart Lynch on LinkedIn
Рекомендации по теме
Комментарии
Автор

Another useful video Stewart. Thank you

parietal