Beginning Swift: Master the fundamentals of programming in Swift 4 pdf

所需积分/C币:5 2018-06-08 08:44:00 5.21MB PDF
52
收藏 收藏
举报

Beginning Swift: Master the fundamentals of programming in Swift 4 pdf Master the fundamentals of programming in Swift 4 Key Features Covers theory and practice in equal parts Teaches you how to correctly structure and architect software using Swift Uses real-world examples to connect the theory t
Numeric Literal Grouping Numeric Type Conversions Using Numeric Types Boolean Character Assigning a Character Constructing a Character Literal String Instantiating a String String Concatenation EXtracting Characters String length Activity C: Data Type Summary Enums Basic Enum Syntax Enum with rav∨aues Activity D: Using Swift Enums Summar 2. Swift Operators and control flow Lesson objectives Swift Operators Assignment Operator Arithmetic Operators Standard Arithmetic Operators Remainder Operator Unary minus Operator Compound Assignment Operators Comparison Operators Equality Inequality Comparison between Two Values Ternary Conditional Operator Logical Operators Bitwise operators Nil-Coalescing Operato Range Operators Closed range operator Half-Open Range Operato One-Sided Range operator Activity A: Operators Branching The if statement Condition lists Optional Unwrapping with if The switch statement switch statement rules The break Keyword The fallthrough Ke eyword Matching Non-Scalar Values Multiple Patterns in a Single Case Using the where Statement within case Evaluating Optionals with a switch Statement Activity B: Converting Code from if to switch LOops The for in statement Iterating over objects Iterating over Array objects with index The for Loop where Clause The break control transfer statement The continue control transfer statement The while Loop The repeat .while Loop Activity C: Implementing Loops Summary 3. Functions, Classes. and structs Lesson Objectives Functions Defining a Function Argument Labels Excluding Argument Labels Parameter default values Activity A: Implementing a Function Returning values from Functions Using @discardableResult Function attributes Variadic Parameters inout parameters Recursion Functions as parameters Closures Creating a Function to Receive Content from an Asynchronous Web service call Error Handling The do,.. catch statement Multiple catch blocks Using do without catch The quard statement Activity B: Exception Handling Object-Oriented Features Object-Oriented Principles Classes versus structs lllustration Defining classes and Structures Activity C: Creating a Customer Struct and Class Summary Challenge 4. Collections Lesson objectives Arrays Working with Arrays Index Utilizing Common Operations with Index Array slice Creating Slices Creating Slices Using Range Operators Activity A: Working with Arrays Sets Working with Sets Combining Sets Comparing Sets Activity B: Removing Duplicates from a Sequence Dictionaries Working with Dictionaries Activity C: Using Dictionaries Summar 5. Strings Lesson objectives String Fundamentals Character Collection Index Working with string index Debugging Activity A: All Indices of a Character Using Strings Creating strings Common Operations mplementing Extra Text Operations on a String Activity B-1: All Ranges of a Substring Activity B-2: Counting Words, Sentences, and Paragraphs Substring Creating subs things Parsing Strings Converting NSRange to Range Activity C: CamelCase Summary 6. Functional Programming and Lazy operations Lesson objectives Function Type Functional methods filter Using the filter Method ma p Using the map function flatM Using the flatMap Function reduce Using the reduce Function Activity A: Implementing Functional Programming Lazy operations Lazy sequences Sequence Internals Creating Lazy Operations sequence(first: next: sequence(state: next Activity B: Implementing a Lazy Version of a Method Swifty Code Naming Organizing Code Miscellaneous Writing Swifty Code Summary Further stud Challenge Index Beginning Swift Beginning Swift Copyright o 2018 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information Acquisition Editor: Aditya Date Content Development Editor: Taabish Khan Production Coordinator: vishal pawar First published: May 2018 Production reference: 1310518 Published by Packt Publishing Ltd Livery Place 35 Livery Street Birmingham B3 2PB, UK SBN978-1-78953-431-3 www.packtpub.com apt mapt.IO Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website Why Subscribe? Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals Learn better with Skill Plans built especially for you Get a free e Book or video every month Mapt is fully searchable Copy and paste, print, and bookmark content

...展开详情
试读 127P Beginning Swift: Master the fundamentals of programming in Swift 4 pdf
立即下载 身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
上传资源赚钱or赚积分
最新推荐
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf 5积分/C币 立即下载
1/127
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第1页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第2页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第3页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第4页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第5页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第6页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第7页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第8页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第9页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第10页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第11页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第12页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第13页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第14页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第15页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第16页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第17页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第18页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第19页
Beginning Swift: Master the fundamentals of programming in Swift 4 pdf第20页

试读结束, 可继续阅读

5积分/C币 立即下载