Skip to content

Instantly share code, notes, and snippets.

Last active Mar 18, 2019
What would you like to do?
func checkIteratorState<T: Sequence, T.Element: Equatable>(sequence: T) {
var iterator1 = sequence.makeIterator()
var iterator2 = sequence.makeIterator()
// test equality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment