Book Image

Beginning Swift

By : Rob Kerr, Kåre Morstøl
Book Image

Beginning Swift

By: Rob Kerr, Kåre Morstøl

Overview of this book

Take your first foray into programming for Apple devices with Swift.Swift is fundamentally different from Objective-C, as it is a protocol-oriented language. While you can still write normal object-oriented code in Swift, it requires a new way of thinking to take advantage of its powerful features and a solid understanding of the basics to become productive.
Table of Contents (10 chapters)

Summary


In this lesson, we covered the three main collections in the Swift Standard Library: Array, Set, and Dictionary; what they are; and how they can be used. We learned about indices, slices/subsequences, and some common protocols. We implemented methods for searching in sorted arrays, for removing duplicates from a sequence, and created the new collection, CountedSet.

In the next lesson, we will explore Strings in detail.