Comparison Operators Swift 4 supports all standard comparison operators of C language. Equal to (a == b) Not equal to (a !=…
enumerations
-
-
Remainder Operator Swift 4 remainder operator (a%b) specifies how many multiples of the second operand (b) will fit inside first operand (a)…
-
Ternary Conditional Operator The ternary conditional operator is used to shorten the code of if statement. It is a special type of…
-
Unary Minus Operator The unary minus operator is a prefixed (-) sign attached with a value. let three = 3 let minusThree…
-
Arithmetic Operators Swift 4 supports the four standard arithmetic operators of all number types: Addition (+) Operator Subtraction (-) Operator Multiplication (*)…
-
Assignment Operator Assignment operator is used to initialize or update the values of both its operands. For example, here (a = b),…
-
Compound Assignment Operators Swift 4 provides compound assignment operators that combine assignment (=) operator with another operator. One example of compound assignment…
-
Range Operators Swift 4 supports several types of range operators which are used as shorthand for expressing a range of values. Closed…
-
SwiftyJSON SwiftyJSON is an open-source library that helps developers use JSON in Swift without much difficulty. Swift is very strict about types…
-
Swift While and Repeat While Loop While and Repeat while loops are used as an alternative of for-in loops when the number…