Skip to content

Instantly share code, notes, and snippets.

@little-arhat
little-arhat / koans.md
Last active March 17, 2025 13:08
ocaml koans

original page, web-archive

let rec

One day, a disciple of another sect came to Xavier Leroy and said mockingly:

"The OCaml compiler seems very limited: why do you have to indicate when a function is recursive, cannot the compiler infer it?"

Xavier paused for a second, and replied patiently with the following story: