Created
April 13, 2016 22:52
-
-
Save chuck0523/2b200b1e4a3fdf5e06bff453525ef470 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
-- model | |
type alias Model = | |
{ todos : List (ID, Todo.Model) | |
, nextID : ID | |
, addText : String -- New! | |
} | |
type alias ID = Int | |
init : Model | |
init = | |
{ todos = [] | |
, nextID = 0 | |
, addText = "" -- New! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment