First

WMA link


First[expr]

returns the first element in expr.

First[expr, def]

returns the first element in expr if it exists or def otherwise.

First[expr] is equivalent to expr[[1]].

The first argument need not be a list:

However, the first argument must be Nonatomic when there is a single argument:

Or if it is not, but a second default argument is provided, that is evaluated and returned:

As before, the first argument is empty, but a default argument is given, evaluate and return the second argument:

Extract
FirstCase