Swift
String Length ....................................................................................................................................... 59 String Comparison ............................................................................................................................... 59 Unicode Strings ................................................................................................................................... 59 String Functions & Operators .............................................................................................................. 60
13.
SWIFT – CHARACTERS ...................................................................................................... 62 Empty Character Variables .................................................................................................................. 62 Accessing Characters from Strings ....................................................................................................... 63 Concatenating Strings with Characters ................................................................................................ 63
14.
SWIFT – ARRAYS............................................................................................................... 64 Creating Arrays .................................................................................................................................... 64 Accessing Arrays .................................................................................................................................. 64 Modifying Arrays ................................................................................................................................. 65 Iterating Over an Array ........................................................................................................................ 66 Adding Two Arrays .............................................................................................................................. 67 The count Property .............................................................................................................................. 68 The empty Property............................................................................................................................. 68
15.
SWIFT – DICTIONARIES..................................................................................................... 70 Creating Dictionary .............................................................................................................................. 70 Accessing Dictionaries ......................................................................................................................... 70 Modifying Dictionaries ........................................................................................................................ 71 Remove Key-Value Pairs ...................................................................................................................... 72 Iterating Over a Dictionary .................................................................................................................. 73 Convert to Arrays ................................................................................................................................ 74 The count Property .............................................................................................................................. 75 The empty Property............................................................................................................................. 76
16.
SWIFT – FUNCTIONS ........................................................................................................ 77 v