next()
Advances to the next element and returns it, or nil if no next element exists.
Declaration
mutating func next() -> Element?Return Value
The next element in the underlying sequence, if a next element exists; otherwise, nil.
Discussion
Once nil has been returned, all subsequent calls return nil.