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 learned about the functional operations filter, map, flatMap, and reduce. Then, we learned about lazy operations and a few ways of creating them. Finally, we learned characteristics of good Swifty code.

The last three lessons of this course have been focused on the Swift Standard Library. We began with learning about the three main generic collections: Arrays, Sets, and Dictionaries, and added some useful methods to them. We also created our own collection: CountedSet. Then, we learned about text handling in Swift and working with Foundation, and added some useful String methods. We also looked at functional programming and lazy operations.

This entire course is designed to be a thorough introduction to Swift for programmers who are new to the language. We hope you have found it useful and welcome you as a fellow Swift programmer.