Partial application of Erlang functions