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

  • 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.