[scala] Function that returns another functions. Currying.