DefaultValues
[symbol]Note: this function is in Mathematica 5 but has been removed from current Mathematica.
Default[f, 1] = 4
DefaultValues[f]
You can assign values to DefaultValues
:
DefaultValues[g] = {Default[g] -> 3};
Default[g, 1]
g[x_.] := {x}
g[a]
g[]