Remove Item From Dictionary

// Create a Dictionary with two elements
var myDictionary = ["first_name": "Sergey", "last_name": "Kargopolov"]

// print to preview
print(myDictionary)

// Remove item for a key
myDictionary.removeValueForKey("last_name")

// print dictionary to preview
print(myDictionary)

[raw_html_snippet id=”cookbookpagecoursesheader”]

Unit Testing Swift Mobile App

Apply Test-Driven Development(TDD) process to iOS mobile app development in Swift Preview this video course.