Function Repository Resource:

Contributed by: Richard Hennigan (Wolfram Research)

## Details and Options

In ResourceFunction["Unthread"][f[g[],g[],]], each of the g[] must have the same number of arguments.
 "PreserveRepeats" True whether to preserve all repeating elements or flatten them

## Examples

### Basic Examples (3)

 In[1]:=
 Out[1]=

 In[2]:=
 Out[2]=

Convert lists of equations to equations for lists:

 In[3]:=
 Out[3]=

 In[4]:=
 Out[4]=
 In[5]:=
 Out[5]=
 In[6]:=
 Out[6]=
 In[7]:=
 Out[7]=

### Scope (1)

Use Unevaluated to unthread an expression before it evaluates:

 In[8]:=
 Out[8]=

### Options (2)

#### PreserveRepeats (2)

By default, repeating elements in the output of Unthread will all appear:

 In[9]:=
 Out[9]=
 In[10]:=
 Out[10]=
 In[11]:=
 Out[11]=

In this case, Unthread can be coerced into being an inverse by setting "PreserveRepeats"False:

 In[12]:=
 Out[12]=

### Properties and Relations (3)

Unthread is just another form of Thread, where the second argument is chosen automatically:

 In[13]:=
 Out[13]=
 In[14]:=
 Out[14]=
 In[15]:=
 Out[15]=

Unthread is a generalization of Transpose:

 In[16]:=
 Out[16]=
 In[17]:=
 Out[17]=
 In[18]:=
 Out[18]=

 In[19]:=
 Out[19]=
 In[20]:=
 Out[20]=
 In[21]:=
 Out[21]=
 In[22]:=
 Out[22]=

### Possible Issues (3)

 In[23]:=
 Out[23]=
 In[24]:=
 Out[24]=
 In[25]:=
 Out[25]=
 In[26]:=
 Out[26]=

The inner expressions must have the same number of arguments:

 In[27]:=
 Out[27]=

The inner expressions must have the same Head:

 In[28]:=
 Out[28]=

## Requirements

Wolfram Language 11.3 (March 2018) or above

## Version History

• 1.0.0 – 18 February 2019