Skip to content

Default

Default[sym] returns the default value of sym when used as an Optional pattern without a default specified.

Attributes[Default] := {Protected}

Simple examples

In[1]:= Default[Times]
Out[1]= 1
In[2]:= Default[Plus]
Out[2]= 0