Tutorial by Examples

Our demo app consists of a scoreboard. The score model is an immutable record. The scoreboard events are contained in a Union Type. namespace Score.Model type Score = { ScoreA: int ; ScoreB: int } type ScoringEvent = IncA | DecA | IncB | DecB | NewGame Changes are propagated by listening...
The core types in the Gjallarhorn library implement IObservable<'a>, which will make the implementation look familiar (remember the EventStream property from the FSharp.ViewModule example). The only real change to our model is the order of the arguments of the update function. Also, we now use...

Page 1 of 1