Skip to content

Instantly share code, notes, and snippets.

@franzejr
Created March 6, 2016 03:18
Show Gist options
  • Save franzejr/abac0b001a86736c04c5 to your computer and use it in GitHub Desktop.
Save franzejr/abac0b001a86736c04c5 to your computer and use it in GitHub Desktop.
Elm - three parts
-- MODEL
type alias Model = { ... }
-- UPDATE
type Action = Reset | ...
update : Action -> Model -> Model
update action model =
case action of
Reset -> ...
...
-- VIEW
view : Model -> Html
view =
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment