Swift 4 Recipes: Hundreds of Useful Hand-picked Code Snippets
By 作者: Yanis Zafirópulos
ISBN-10 书号: 1484241819
ISBN-13 书号: 9781484241813
Edition 版本: 1st ed.
出版日期: 2019-02-04
pages 页数: (371)
Get the most out of Swift 4 with this carefully compiled collection of select code snippets designed to solve everyday coding problems. This book features the Apress easy-to-use recipe format, with step-by-step instructions, and a no-fuss approach.
You’ll explore a wide range of topics, all neatly organized according to the language’s own core elements and building blocks. You’ll review common topics such as conditionals, loops, functions, classes, closures, and arrays. This book also includes recipes to some more advanced problems found in files, system programming, and algorithms.
With Swift 4 Recipes, your programming problems are easily resolved, without wading through paragraphs of text.
What You’ll Learn
Create if-switch statements, ternary operator, and nil-coalescing
Work with numbers, conversions, mathematical functions
Access the command line and retrieving system info
Cover
Front Matter
Partl. Beginner
1. Introduction
2. Basics
3. Conditionals
4. Loops
5. Functions
Part ll. Intermediate
6. Classes and Closures
7. Strings
8. Arrays and Sets
9. Dictionaries
Part ll. Advanced
10. Numbers and Dates
11. Exceptions
12. Web, Files, and System
13. More Advanced Topics
Back Matter