Dictionaries are Collection that store key-value paired items.The values are of same type and all items are stored without any order. You can access any item using its key. It is not required that the keys should be a number always. All the keys should be of the same type and unique.A dictionary can be variable or constant in swift.
ReadPreviously we have discussed about arrays in swift. Similar to array, set is another collection data type in swift. The main difference is that the elements in a set are unordered and it contain only unique elements. In this tutorial, we will show you how to create a set and different set operations :.
ReadIntroduction with examples to swift array for beginners. Swift array is used to store values of similar type. This post will show you how to use swift array with examples.
ReadIn swift, we can compare two strings or two characters using 'equal to ' and 'not equal to' operators. Learn how to check if two strings or characters are equal in swift.
ReadSwift program to check if a string is starting with different sub-string or ends with a different substring. Learn how to do Prefix and Postfix checking in swift with example.
Read