Created
March 20, 2015 18:48
-
-
Save mattpodwysocki/9540c8b3cf674b0ca070 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Iterable<T> { | |
[Symbol.iterator]() : Iterator<T> | |
} | |
interface Iterator<T> { | |
[Symbol.iterator]() : Iterator<T> | |
next() : IteratorResult<T> | |
} | |
interface IteratorResult<T> { | |
value: T | |
done: boolean | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment