This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Pattern Matching /

Default

FilledSmallSquare Default[f], if defined, gives the default value for arguments of the function f obtained with a _. pattern object.

FilledSmallSquare Default[f, i] gives the default value to use when _. appears as the i argument of f.

FilledSmallSquare Default[f, i, n] gives the default value for the i argument out of a total of n arguments.

FilledSmallSquare _. represents an optional argument to a function, with a default value specified by Default.

FilledSmallSquare The necessary values for Default[f] must always be defined before _. is used as an argument of f.

FilledSmallSquare Values defined for Default[f] are stored in DefaultValues[f].

FilledSmallSquare See Section A.5.1.

FilledSmallSquare See also: Options.

FilledSmallSquare Related package: Utilities`FilterOptions`.

FilledSmallSquare New in Version 1.