Skip to content

Last

Last[expr] returns the last part of expr.

Attributes[Last] := {Protected}

Simple examples

In[1]:= Last[{1, 5, 6}]
Out[1]= 6
In[2]:= Last[a + b]
Out[2]= b