pattern match

Serge Aleynikov <>
Fri Mar 11 21:47:35 CET 2005


Is there any difference in doing a pattern match on a parameter in the 
following implementations, or this is just a matter of programming style?

f({a, _B} = Param) ->
   Param.

or

f(Param = {a, _B}) ->
   Param.

Thanks.

Serge



More information about the erlang-questions mailing list