protocol
_Sequence_Type
Inheritance |
_SequenceType
View Protocol Hierarchy →
|
---|---|
Associated Types |
A type whose instances can produce the elements of this sequence, in order. |
Import |
|
Instance Methods
Return a generator over the elements of this sequence. The generator's next element is the first element of the sequence.
Complexity: O(1)
Declaration
func
generate
() -
>
Generator
This protocol is an implementation detail of
SequenceType
; do not use it directly.Its requirements are inherited by
SequenceType
and thus must be satisfied by types conforming to that protocol.