Created
April 2, 2016 22:15
-
-
Save chuck0523/cda856b6ee73b5f31793f6390f49c736 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
Insert -> | |
let newCounter = ( model.nextID, Counter.init 0 ) | |
newCounters = model.counters ++ [ newCounter ] | |
in | |
{ model | | |
counters = newCounters, | |
nextID = model.nextID + 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment