Why function + match instead of partial function?