filmov
tv
Swift - Part 22, Dictionary | Collection Finale
Показать описание
In this tutorial we will discuss the last of Swift collection - Dictionary. Dictionary is a key value pair data collection. Swift’s Dictionary is is similar to Java’s HashMap or Pythons dict. The keys have to be unique however the duplicated of values can exist. In this video we have a look at how to declare a Dictionary in Swift, how to initialize it. We have a look at how to add, remove and modify the elements from a Dictionary. Finally we have a look at how to iterate over a Dictionary using tuples. Finally we also have a look at how to iterate over just keys and values present in the Dictionary.