Swift – Arrays
This topic is about Swift - Arrays. Swift 4 arrays are used to store ordered lists of values of the same type. Swift 4 puts strict checking which does not…
This topic is about Swift - Arrays. Swift 4 arrays are used to store ordered lists of values of the same type. Swift 4 puts strict checking which does not…
This chapter is about Swift - Characters. A character in Swift is a single character String literal, addressed by the data type Character. Take a look at the following example. It uses two…
This topic about Swift - Strings. Strings in Swift 4 are an ordered collection of characters, such as "Hello, World!" and they are represented by the Swift 4 data type String,…
This topic is about Swift - Loops. There may be a situation when you need to execute a block of code several number of times. In general, statements are executed…
This topic is about Swift - Decision Making. Decision making structures require that the programmer specifies one or more conditions to be evaluated or tested by the program, along with…
This topic is about Swift - Operators. An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. Objective-C is rich in built-in operators and…
This topic is about Swift - Literals. A literal is the source code representation of a value of an integer, floating-point number, or string type. The following are examples of…
This topic is about Swift - Constants. Constants refer to fixed values that a program may not alter during its execution. Constants can be of any of the basic data…
This topic is about Swift - Tuples. Swift 4 also introduces Tuples type, which are used to group multiple values in a single compound Value. The values in a tuple can be…
This topic is about Swift - Optionals. Swift 4 also introduces Optionals type, which handles the absence of a value. Optionals say either "there is a value, and it equals x" or…