Returns an iterator over the elements of the collection.
SDK
- Xcode 10.2+
Framework
- Swift Standard Library
Declaration
Discussion
Note
This documentation comment was inherited from Collection
.
Returns an iterator over the elements of the collection.
SDK
Framework
Note
This documentation comment was inherited from Collection
.
func for Each((Character) -> Void)
Calls the given closure on each element in the sequence in the same order as a for
-in
loop.
func enumerated() -> Enumerated Sequence<String>
Returns a sequence of pairs (n, x), where n represents a consecutive integer starting at zero and x represents an element of the sequence.
var underestimated Count: Int
A value less than or equal to the number of elements in the collection.