package minttea

  1. Overview
  2. Docs

Source file app.ml

1
2
3
4
5
6
7
8
9
type 'model t = {
  initial_model : unit -> 'model;
  init : 'model -> Command.t;
  update : Event.t -> 'model -> 'model * Command.t;
  view : 'model -> string;
}

let make ~initial_model ~init ~update ~view () =
  { initial_model; init; update; view }
OCaml

Innovation. Community. Security.