Skip to content

Instantly share code, notes, and snippets.

@marenovakovic
Created January 24, 2023 12:21
Show Gist options
  • Save marenovakovic/61f1e5746e6257caab1af82dc18145b7 to your computer and use it in GitHub Desktop.
Save marenovakovic/61f1e5746e6257caab1af82dc18145b7 to your computer and use it in GitHub Desktop.
F# Flutter app update
let update msg model =
match msg with
| Increment -> { model with count = model.count + 1 }, Cmd.none
| Decrement -> { model with count = model.count - 1 }, Cmd.none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment