Default

WMA link


Default[f]

gives the default value for an omitted parameter of f.

Default[f, k]

gives the default value for a parameter on the k-th position.

Default[f, k, n]

gives the default value for the k-th parameter out of n.

Assign values to Default to specify default values.

Default values are stored in DefaultValues:

You can use patterns for k and n:

Note that the position of a parameter is relative to the pattern, not the matching expression:

All
FilterRules