The ocaml software is open source, and the packages are open source, but it often looks like the code has been run through a comment cleaner.
For those who want to or have to learn programming in OCaml I want to provide some code samples, commented, starting on a simple level, which are also useful by themthelves.
Especially if you are coming from an imperative languages and scripting background, where the list data structure does not play a role, it can be difficult to see how you can build your application on list data.
- How to execute your program
- a small helper script, well commented, to commit your changes to git repo
- a try at timing the hash functions from Cryptokit.Hash
- a little helper when compiling programs or the like: execute command when file changes
- the sort_*.ml files are ocaml shell scripts that show the sort progression in a Graphics window
Please have fun improving, extending and modifying the files. Happy Ocamling.