This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Lists and Matrices / Element Extraction  /
Last

  • Last[ expr ] gives the last element in expr.
  • Last[ expr ] is equivalent to expr [[-1]].
  • See the Mathematica book: Section 1.8.4.
  • See also: Part, First, Take.

    Further Examples

    This returns the last element from the list.

    In[1]:=

    Out[1]=