This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Extract

Extract[expr, list]
extracts the part of expr at the position specified by list.
Extract[expr, {list1, list2, ...}]
extracts a list of parts of expr.
Extract[expr, list, h]
extracts parts of expr, wrapping each of them with head h before evaluation.
  • Extract[expr, {i, j, ...}] is equivalent to Part[expr, i, j, ...].
  • You can use Extract[expr, ..., Hold] to extract parts without evaluation.
  • If expr is a SparseArray object, Extract[expr, ...] extracts parts in the corresponding ordinary array.
Extract the second part from an expression:
Extract a part nested in an expression:
Extract parts from multiple positions:
Extract the parts given by Position:
Extract the second part from an expression:
In[1]:=
Click for copyable input
Out[1]=
 
Extract a part nested in an expression:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Extract parts from multiple positions:
In[3]:=
Click for copyable input
Out[3]=
 
Extract the parts given by Position:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
New in 3 | Last modified in 5