OCaml snippets

This is a collection of OCaml snippets I've made myself and collected (ripped off) over the years. Hopefully it will be useful to someone else as well.