Created
April 16, 2016 09:05
-
-
Save chuck0523/06fd3797eb9036039d8c382b8aeb3729 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
type alias Model = | |
{ todoId : ID | |
, todoText : String | |
, done : Bool | |
} | |
type alias ID = Int | |
init : ID -> String -> Model | |
init passedId addedText = | |
{ todoId = passedId | |
, todoText = addedText | |
, done = False | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment