[erlang-questions] Dummy question

Donald Steven t6sn7gt@REDACTED
Sat Mar 2 01:36:18 CET 2019


I want to initiate a function parameter in the calling code to 0, as in:

myfun(0, ....) ->

The parameter won't be used the first time through the  function, so if 
I give it a name, as in:

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


I get a warning that Param1 wasn't used.

If I do:

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

     Param1 = value,

I get the usual immutable error.

How do I do this?

More information about the erlang-questions mailing list