[erlang-questions] Dummy question

PAILLEAU Eric eric.pailleau@REDACTED
Sat Mar 2 09:38:47 CET 2019


Hello,

either use '_' variable .

myfun(Param1, ...) -> something;
myfun(_, ....) ->

       myfun(value).

or directly the param you want to match

myfun(Param1, ...) -> something;
myfun(0, ....) ->

       myfun(value).


Le 02/03/2019 à 01:36, Donald Steven a écrit :
> myfun(Param1, ...) -> something;
> myfun(Param1, ....) ->
> 
>      myfun(value).




More information about the erlang-questions mailing list