Erlang snippets, tests and experiments