struct JoinGenerator<Base : GeneratorType where Base.Element : SequenceType>
Inheritance |
GeneratorType
View Protocol Hierarchy →
|
---|---|
Import | import Swift |
Initializers
init(base:separator:)
Creates a generator that presents the elements of the sequences
generated by base
, concatenated using separator
.
Complexity: O(separator.count
).
Declaration
init<Separator : SequenceType where Separator.Generator.Element == Base.Element.Generator.Element>(base: Base, separator: Separator)
Instance Methods
mutating func next()
Advance to the next element and return it, or nil
if no next
element exists.
Declaration
mutating func next() -> Base.Element.Generator.Element?
A generator that presents the elements of the sequences generated by
Base
, concatenated using a given separator.