Partial application for Erlang functions