Index

Symbols

@objc keyword, 112

? (question mark), 44

optional chaining, 58-61

postfixed question marks, 57

A

abort() function, 128

access control, 159

access-level modifiers, 185-186

adopting protocols, 104-112

algebraic data types, 157-158

aliases, type aliases, 78

alternatives to try? operator, 149-151

Apple Developer Forums, 9

Apple Swift blog, 9

applications, 4

terminating

abort() function, 128

assertions, 126-127

fatalError() function, 126

preconditions, 127-128

arguments. See also parameters

format specifiers, 19-20

positional arguments, 75-76

separator, 13

shorthand argument names, 74-76

tuple arguments, 74

arrays

comparing with tuples, 73

multi-index array subscripting, 84, 194-195

safe indexing, 193-194

slices, 195-196

typed arrays, ...

Get The Swift™ Developer’s Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.