Define a Function for Repeated Expressions

Use Repeated () to define a function that takes as an argument any list of pairs.

    
In[32]:=
Click for copyable input
In[33]:=
Click for copyable input
Out[33]=
In[35]:=
Click for copyable input
Out[35]=
Since the first element of the list is not a pair, the function does not work:
In[36]:=
Click for copyable input
Out[36]=
New to Mathematica? Find your learning path »
Have a question? Ask support »