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  /
First

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

    Further Examples

    This gives the first element from the list.

    In[1]:=

    Out[1]=

    The result may seem strange until you see how the polynomial is stored internally.

    In[2]:=

    Out[2]=

    In[3]:=

    Out[3]//FullForm=