OCaml and Haskell code from the book