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 55
66Lazily iterates over tuples of adjacent elements.
77
8- This operation is available for any sequence by calling the ` adjacentPairs() `
9- method.
10-
118``` swift
129let numbers = (1 ... 5 )
1310let 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.
8686### Naming
8787
8888The 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:
9090
9191- When the standard library uses ` of ` as a label, the parameter is generally
9292 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