FlattenAt

FlattenAt[list,n]
flattens out a sublist that appears as the n th element of list. If n is negative, the position is counted from the end.

FlattenAt[expr,{i,j,}]
flattens out the part of expr at position {i,j,}.

FlattenAt[expr,{{i1,j1,},{i2,j2,},}]
flattens out parts of expr at several positions.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Flatten at position 2:

In[1]:=
Click for copyable input
Out[1]=

Flatten at positions 2 and 4:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 1991
(2.0)