Created
June 4, 2016 14:31
-
-
Save voddan/375bfa3cc32a243d2041a74e3e08b51c 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 Circular<T> { | |
fun state(): T | |
fun inc() | |
fun isZero(): Boolean // `true` in exactly one state | |
fun hasNext(): Boolean // `false` if the next state `isZero()` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment