Build Your Swift Skills - Lesson 6 - Dictionary

preview_player
Показать описание

You've learned about Arrays. Now it's time to learn about Dictionaries which is another highly used and highly useful tool to keep track of collections of data!

While the Array excels at storing ordered collections, the Dictionary shines at retrieving exactly the piece of data you need, when you need it.

In this lesson, I’ll tell you all about how Dictionaries work and how to use them. You'll also learn when to use an Array versus when to use a Dictionary to hold your data!

Finally, don't forget to download the worksheet below to get extra practice!

To download the code, projects, worksheets and assets, visit:

🚨 SPECIAL CWC+ OFFER FOR YOUTUBE:

FREE BEGINNER COURSE:

CWC+ LEARNING PATH:

CONNECT:

ABOUT CODEWITHCHRIS:

DID THESE LESSONS HELP YOU?
Рекомендации по теме
Комментарии
Автор

Awesome bro, you are the best teacher in my life I ever seen

avanishpatel
Автор

What a great final comparison between an array and a dictionary. Thanks, Chris.

JamesTeachesPiano
Автор

Great tutorial again. The final comparison really helps a lot! Thank you Chris!

Simon-ronh
Автор

awesome. This definitely helped me differentiate between arrays and dictionaries.

TJHooper
Автор

Hi, Thanks for your videos, they are really good. Now I have come to a point where I struggle. I make an App with two buttons with drop down menus. Where I want the upper button with “car brands” to control what the lower button shows “car models”. The brand and models are assigned to each button in arrays. Are you able to give me a push forward here?

sjakan
Автор

Very good, thank you
Waiting for next.

allin
Автор

Thank you so much!! Your videos are rly good :)

AAAJ
Автор

can you have a mixed type definition like ["salary":50, 000] or [String:Int] ?

yagasmurf
Автор

Chris Can I run xcode in Windows PC? If yes pls share a link to download .

afzalshaik
Автор

Hi Chris, I like your lessons.
The Dictionary can contain different type of data as [Bool:Int]. How it cab be used?

bbz
Автор

I did remove this way:
"key")
is the effect the same?

petridesDZiB
Автор

For if statement I get an error that ‘nil’ cannot be assigned to type’ string’. Why ?

Nik_