I think the first one is a single function that has pattern matching for the parameter while the second one is defining the function twice and relying on the language to call the right one based on the parameter.
I think in Erlang the function identification is the name and the arity and this is as close I know of what you would like to have.