Inout Parameters and Mutating Functions

Описание к видео Inout Parameters and Mutating Functions

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 :)
https://ko-fi.com/stewartlynch

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)
https://www.createchsol.com/StarterPr...

Completed Project:
https://github.com/StewartLynch/Inout...

References mentioned in video:
map, compactMap, flatMap
   • map, compactMap flatMap  

contains, forEach, sorted
   • contains, forEach, sorted  

reduce, filter, removeAll
   • reduce, filter, removeAll  


Other References:
Stewart Lynch's YouTube Channel:
   / @stewartlynch  
Stewart Lynch on Mastodon:
https://iosdev.space/@StewartLynch
Stewart Lynch on Twitter:
  / stewartlynch  
Stewart Lynch on LinkedIn
  / stewartlynch  

Комментарии

Информация по комментариям в разработке