File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 5
5
6
6
Lazily iterates over tuples of adjacent elements.
7
7
8
- This operation is available for any sequence by calling the ` adjacentPairs() `
9
- method.
10
-
11
8
``` swift
12
9
let numbers = (1 ... 5 )
13
10
let pairs = numbers.adjacentPairs ()
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ call to `CombinationsSequence.Iterator.next()` is an O(_n_) operation.
86
86
### Naming
87
87
88
88
The parameter label in ` combination(ofCount:) ` is the best match for the
89
- Swift API guidelines. A few other options were considered:
89
+ [ Swift's API Design Guidelines ] ( https://www.swift.org/documentation/api-design- guidelines/ ) . A few other options were considered:
90
90
91
91
- When the standard library uses ` of ` as a label, the parameter is generally
92
92
the object of the operation, as in ` type(of:) ` and ` firstIndex(of:) ` , and
You can’t perform that action at this time.
0 commit comments