Skip to content

Commit cb3aba8

Browse files
committed
Update documentation descriptions.
1 parent 66b6aff commit cb3aba8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Guides/Cycle.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ for x in (1...3).cycled(times: 3) {
1616
// Prints 1 through 3 three times
1717
```
1818

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-
2319
## Detailed Design
2420

2521
Two new methods are added to collections:
@@ -38,7 +34,8 @@ conforms to `LazySequenceProtocol` when the base type conforms.
3834

3935
Note that the returned `FiniteCycle` will always have `Collection`
4036
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.
4239

4340
### Complexity
4441

0 commit comments

Comments
 (0)