Shallow

Shallow[expr]
prints as a shallow form of expr.

Shallow[expr, depth]
prints with all parts of expr below the specified depth given in skeleton form.

Shallow[expr, {depth, length}]
also gives parts whose lengths are above the specified limit in skeleton form.

Shallow[expr, {depth, length}, form]
uses skeleton form for any parts that match the pattern form.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Shallow display of a list:

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

Shallow display of a nested list:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]//Shallow=
New in 2 | Last modified in 3
New to Mathematica? Find your learning path »
Have a question? Ask support »