On Thu, Jul 15, 2010 at 1:24 PM, Goswin von Brederlow <goswin-v-b@web.de> wrote:
It is too bad I don't want to learn CML but use Ocaml. The CML examples
from the book don't translate into ocaml since the interface is just a
little bit different and those differences are what throws me off.
 
So could you give a short example? E.g. the merge sort from the book.

You're right: OCaml's syntax differs enough from the text that it's annoying to cut-n-paste the examples. Fortunately most example are a few lines of code, so I didn't realize how difficult it could be on a larger example (like the merge sort example.)

Attached is my translation of the mergeSort from the book. You get to play with it and see if it works  :)

--
Rich

Google Reader: https://www.google.com/reader/shared/rich.neswold
Jabber ID: rich@neswold.homeunix.net