NSDictionary Set, replacing NSSet (introduced in Swift 1.2) Foundation data structures e.g. NSArray, NSDictionary, NSSet Core Foundation data structures e.g. CFArray, CFDictionary, CFSet
and Reference A Value type is a type which value is copied when it is assigned to a variable or constant, or when it is passed to a function. Reference types are not copied when they are assigned to a variable or constant, or when they are passed to a function. Rather than a copy, a reference to the same existing instance is used instead.
are implemented as structures. This means that strings, arrays, and dictionaries are copied when they are assigned to a new constant or variable, or when they are passed to a function or method.”* This behaviour is different than Foundation classes which are implemented as classes passed by reference *Apple Inc. “The Swift Programming Language”
O(n) Creating Swift Array grow between O(n) and O(n²) Creating arrays Looking up items in array Looking up by index is almost the same, but looking by object is much faster in Swift’s Arrays http://www.raywenderlich.com/79850/collection-data-structures-swift
Swift Dictionary, it’s performance degrades between O(n) and O(n²) Creating dictionaries Looking up items It’s twice faster than NSDictionary http://www.raywenderlich.com/79850/collection-data-structures-swift