caml-prépa playground

Write OCaml on the left, as taught in French classes préparatoires. On the right, the compiler shows what the programme prints, the types it worked out, where each name is visible, the Python it translates to, and the run one step at a time. Everything happens in your browser.

starting…

Source

What the programme prints. It runs twice, once by the interpreter and once as compiled Python, and the line at the top right says whether both printed the same thing.