Swift Collection Control Loops
Stewart Lynch
0:00 / 0:00
Swift Collection Control Loops
1 541 просмотр · 5 лет назад
Stewart Lynch
27 тыс. подписчиков
1 541 просмотр · 5 лет назад
In Swift, there are a number of different ways in which you can loop through your collections of elements. These can be arrays, sets, dictionaries or ranges of elements. In this video, I will take you through your options.
If you want to support my work, you can buy me a coffee :)
https://ko-fi.com/stewartlynch
******* Download my StewartLynch YouTube Channel Application - Free **********
https://stewartlynch.gumroad.com/l/obsjz
Table of Contents:
0:00 Introduction
1:35 Looping over arrays
6:54 Looping over Dictionaries
11:37 Looping with Ranges
14:42 Break, Continue, nested loops, while and repeat while
Starter Project Files:
http://www.createchsol.com/StarterPro...
Completed Project:
https://github.com/StewartLynch/Swift...
Other references:
Contains, forEach, Sorted video:
• contains, forEach, sorted
Reduce, Filter, RemoveAll video:
• reduce, filter, removeAll
Other References:
Stewart Lynch's YouTube Channel:
/ stewartlynch
Stewart Lynch on Twitter:
/ stewartlynch
CreaTECH Solutions Website:
https://www.createchsol.com
Stewart Lynch's GitHub:
https://github.com/StewartLynch