WHAT'S IN THIS CHAPTER?
WROX.COM CODE DOWNLOADS FOR THIS CHAPTER
Swift draws inspiration from many languages, especially functional programming languages. While you can certainly get by with the more basic features discussed previously in this book, you will no doubt encounter some of Swift's more advanced features as you become more experienced and proficient in Swift programming. This chapter introduces you to Swift's more advanced concepts, particularly enumerations, optional types, and closures. When you are done, you will have many more tools in your Swift toolbox to help you improve the quality of your code.
Although Swift is heavily geared toward object-oriented programming, it draws elements and inspiration from many functional programming languages. You've already seen some of these elements, including Swift's use of closures and functions as first-class ...