Last• Last[expr] gives the last element in expr. • Last[expr] is equivalent to expr[[-1]]. • See also: First, Part, Take.
Examples Using InstantCalculatorsHere are the InstantCalculators for the Last function. Enter the parameters for your calculation and click Calculate to see the result. This gives the last element of a list.
Out[1]= |  |
This gives the last row of a matrix.
Out[2]= |  |
Entering Commands DirectlyYou can paste a template for this command via the Text Input button on the Last Function Controller. This returns the last element from the list.
Out[3]= |  |
This returns the last row from the matrix.
Out[4]= |  |
|