Created
February 15, 2012 21:06
-
-
Save globulon/1839011 to your computer and use it in GitHub Desktop.
State definition
This file contains hidden or 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
| case class State[+T, S](f: (S) => (T,S)) { | |
| def apply(s: S): (T, S) = f(s) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment