Even if it is an old post, I have to say that Yaron Minsky is a good source for learning OCaml. I learned a good deal of it trying to figure out how his Planets gravity simulation worked, and then porting the algorithm to javascript. Here is his program:
http://planets.homedns.org/