Created
December 21, 2015 07:40
-
-
Save Chadtech/6b389f01a073346a7787 to your computer and use it in GitHub Desktop.
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
| update : Action -> Model -> Model | |
| update action model = | |
| case action of | |
| Reset -> init 0 0 | |
| Top act -> | |
| { model | | |
| topCounter = Counter.update act model.topCounter | |
| } | |
| Bottom act -> | |
| { model | | |
| bottomCounter = Counter.update act model.bottomCounter | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment