Experiments for teaching Foundations of Computer Science, the first-year functional programming course in OCaml at Cambridge. Everything runs in your browser: OCaml is compiled to JavaScript, and the checks run on your machine, with no server. These are prototypes, not course material.
rev with an accumulator and of tree traversals,
where you choose the next state before it is shown.tcons works: an animation
of Tick 3's tcons, a step for swapping the subtrees and a
step for the recursive call. For after the tick.listofarray: Tick 3's listofarray
measured for time, blocks allocated and stack depth. Three solutions
all take O(n log n) time but differ in space; a fifth
takes O(n). For after the tick.Built on x-ocaml. Jon Ludlam, November 2026.