Programare swift Swift tutorial from tutorials point | Page 6

Swift 4 String Concatenation ............................................................................................................................. 55 String Length ......................................................................................................................................... 56 String Comparison ................................................................................................................................. 56 String Iterating ...................................................................................................................................... 56 Unicode Strings ..................................................................................................................................... 57 String Functions & Operators ................................................................................................................ 57 14. SWIFT 4 – CHARACTERS ..................................................................................................... 60 Empty Character Variables .................................................................................................................... 60 Accessing Characters from Strings ......................................................................................................... 61 Concatenating Strings with Characters .................................................................................................. 61 15. SWIFT 4 – ARRAYS ............................................................................................................. 62 Creating Arrays ..................................................................................................................................... 62 Accessing Arrays.................................................................................................................................... 62 Modifying Arrays ................................................................................................................................... 63 Iterating Over an Array ......................................................................................................................... 64 Adding Two Arrays ................................................................................................................................ 65 The count Property ............................................................................................................................... 66 The empty Property .............................................................................................................................. 66 16. SWIFT 4 – SETS .................................................................................................................. 68 Creating Sets ......................................................................................................................................... 68 Accessing and modifying Sets ................................................................................................................ 68 Iterating over a Set ................................................................................................................................ 69 Performing Set Operations .................................................................................................................... 69 17. SWIFT 4 – DICTIONARIES ................................................................................................... 70 Creating Dictionary ............................................................................................................................... 70 v