Skip to content

Commit 82eac14

Browse files
committed
Added In-page Navigation links to Section 2
1 parent 943913d commit 82eac14

7 files changed

+21
-7
lines changed

2 - Basic Operators/2.0 - Basic Operators.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ Swift includes all the basic C operators, but makes improvements on several of t
44
* = no longer returns a value to avoid confusion with ==
55
* Arithmetic operators detect and avoid value overflow
66

7-
It also provides range operators to make it easier to express ranges of values.
7+
It also provides range operators to make it easier to express ranges of values.
8+
9+
[Previous Section](../1%20-%20The%20Basics/1.13%20-%20Assertions%20and%20Preconditions.md)| [Back To Contents](https://github.com/Firanus/swift-language-guide-notes) | [Next Note](../2%20-%20Basic%20Operators/2.1%20-%20Terminology.md)

2 - Basic Operators/2.1 - Terminology.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ Operators come in 3 varieties, *unary*, *binary*, and *ternary*.
99
2. *Binary* operators, which operate on two targets. They are always *infix*, appearing between their two targets (e.g. a + b)
1010
3. *Ternary* operators, which operate on 3 targets. Like C, Swift has only one, the ternary conditional (a ? b : c)
1111

12-
The values which operators affect are called *operands*
12+
The values which operators affect are called *operands*
13+
14+
[Previous Note](../2%20-%20Basic%20Operators/2.0%20-%20Basic%20Operators.md)| [Back To Contents](https://github.com/Firanus/swift-language-guide-notes) | [Next Note](../2%20-%20Basic%20Operators/2.2%20-%20The%20Arithmetic%2C%20Assignment%20and%20Logical%20Operators.md)

2 - Basic Operators/2.2 - The Arithmetic, Assignment and Logical Operators.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ The Logical operators are the same as in C, namely
3838
They can of course be chained together. When this happens they are *left-associative*, i.e. the left-most sub-expression is evaluated first. In other words, the following two expressions are equivalent:
3939

4040
`a && b || c`
41-
`(a && b) || c`
41+
`(a && b) || c`
42+
43+
[Previous Note](../2%20-%20Basic%20Operators/2.1%20-%20Terminology.md)| [Back To Contents](https://github.com/Firanus/swift-language-guide-notes) | [Next Note](../2%20-%20Basic%20Operators/2.3%20-%20Comparison%20Operators.md)

2 - Basic Operators/2.3 - Comparison Operators.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ Swift supports all the standard C comparison operators:
77
* Greater than (a > b)
88
* Less than (a < b)
99
* Greater than or equal to (a >= b)
10-
* Less than or equal to (a <= b)
10+
* Less than or equal to (a <= b)
11+
12+
[Previous Note](../2%20-%20Basic%20Operators/2.2%20-%20The%20Arithmetic%2C%20Assignment%20and%20Logical%20Operators.md)| [Back To Contents](https://github.com/Firanus/swift-language-guide-notes) | [Next Note](../2%20-%20Basic%20Operators/2.4%20-%20Ternary%20Conditional%20Operator.md)

2 - Basic Operators/2.4 - Ternary Conditional Operator.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ if question {
1515
}
1616
```
1717

18-
While very useful, be careful when using this operator. Used too liberally, it can make your code hard to read.
18+
While very useful, be careful when using this operator. Used too liberally, it can make your code hard to read.
19+
20+
[Previous Note](../2%20-%20Basic%20Operators/2.5%20-%20Nil-Coalescing%20Operator.md)| [Back To Contents](https://github.com/Firanus/swift-language-guide-notes) | [Next Note](../2%20-%20Basic%20Operators/2.0%20-%20Basic%20Operators.md)

2 - Basic Operators/2.5 - Nil-Coalescing Operator.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ The nil-coalescing operator `a ?? b`, unwraps an optional a if it contains a val
55
It is shorthand for the following:
66
```Swift
77
a != nil ? a! : b
8-
```
8+
```
9+
10+
[Previous Note](../2%20-%20Basic%20Operators/2.4%20-%20Ternary%20Conditional%20Operator.md)| [Back To Contents](https://github.com/Firanus/swift-language-guide-notes) | [Next Note](../2%20-%20Basic%20Operators/2.6%20-%20Range%20Operators.md)

2 - Basic Operators/2.6 - Range Operators.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,6 @@ let range = ...5
7070
range.contains(7) // false
7171
range.contains(4) // true
7272
range.contains(-1) // true
73-
```
73+
```
74+
75+
[Previous Note](../2%20-%20Basic%20Operators/2.5%20-%20Nil-Coalescing%20Operator.md)| [Back To Contents](https://github.com/Firanus/swift-language-guide-notes) | [Next Section](../3%20-%20Strings%20and%20Characters/3.0%20-%20Strings%20and%20Characters.md)

0 commit comments

Comments
 (0)