File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ for x in (1...3).cycled(times: 3) {
16
16
// Prints 1 through 3 three times
17
17
```
18
18
19
- ` cycled(times:) ` combines two other existing standard library functions
20
- (` repeatElement ` and ` joined ` ) to provide a more expressive way of repeating a
19
+ ` cycled(times:) ` provides a more expressive way of repeating a
21
20
collection's elements a limited number of times.
22
21
23
22
## Detailed Design
@@ -38,7 +37,8 @@ conforms to `LazySequenceProtocol` when the base type conforms.
38
37
39
38
Note that the returned ` FiniteCycle ` will always have ` Collection `
40
39
conformance, and will have ` BidirectionalCollection ` conformance
41
- when called on a bidirectional collection.
40
+ when called on a bidirectional collection. ` FiniteCycle ` also
41
+ conforms to ` LazyCollectionProtocol ` when the base type conforms.
42
42
43
43
### Complexity
44
44
You can’t perform that action at this time.
0 commit comments