File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,6 @@ 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
21
- collection's elements a limited number of times.
22
-
23
19
## Detailed Design
24
20
25
21
Two new methods are added to collections:
@@ -38,7 +34,8 @@ conforms to `LazySequenceProtocol` when the base type conforms.
38
34
39
35
Note that the returned ` FiniteCycle ` will always have ` Collection `
40
36
conformance, and will have ` BidirectionalCollection ` conformance
41
- when called on a bidirectional collection.
37
+ when called on a bidirectional collection. ` FiniteCycle ` also
38
+ conforms to ` LazyCollectionProtocol ` when the base type conforms.
42
39
43
40
### Complexity
44
41
You can’t perform that action at this time.
0 commit comments