Extensions add new functionality to an existing class, st...[作者空间]
We can define some types within other types, just like th...[作者空间]
Checking Type We use is keyword to check if an instance i...[作者空间]
Defining and Calling Asynchronous Functions We use async ...[作者空间]
Representing and Throwing Errors We can use enumeration t...[作者空间]
Calling Methods Through Optional Chaining In the example ...[作者空间]
Default Initializers Memberwise Initializers for Structur...[作者空间]
Overriding Overriding Property Getters and Setters We can...[作者空间]
Subscripts can be defined in Classes, Stuctures and Enmue...[作者空间]
Like OC, we can make instance methods and type methods(li...[作者空间]
Computed properties are provided by classes, structures, ...[作者空间]
Comparing Structures and Classes Memberwise Initializers ...[作者空间]
Enumeration Syntax The name of enumeration starts with a ...[作者空间]
Closure Expressions The Sorted Method the above example s...[作者空间]
Function Parameters and Return Values Functions With an I...[作者空间]
For-In Loops If we don’t need each value from a sequence,...[作者空间]
Collection Types Arrays Creating an Array by Adding Two A...[作者空间]
String Literals Multiline String Literals a single line S...[作者空间]
Basic Operators Comparison Operators We can compare two t...[作者空间]
Two type of values Constants & Variables Declaration It c...[作者空间]