SLIDE 1
1/19
Functional Reactive Programming Bob Reynders PLaNES, 4 Februari - - PowerPoint PPT Presentation
Functional Reactive Programming Bob Reynders PLaNES, 4 Februari 2015 1/19 Functional Reactive Programming Event discrete values Mouse.click: Event[Click] List[(Time, A)] Behavior time-varying values Mouse.position:
1/19
2/19
◮ Mouse.click: Event[Click] ◮ ≈ List[(Time, A)]
◮ Mouse.position: Behavior[Coordinate] ◮ ≈ Time => A
3/19
4/19
5/19
+1
fold 0 main (span(0), span(-1), ...) merge (0, -1, +1, +1, +1, ...) counter (0, -1, 0, 1, 2, …) World
6/19
New
7/19
x x2 always True
8/19
9/19
◮ Rep[String] = (Client) Javascript String ◮ String = (Server) Scala String
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19