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

Shallow

Shallow[expr]
prints as a shallow form of expr.
Shallow
prints with all parts of expr below the specified depth given in skeleton form.
Shallow
also gives parts whose lengths are above the specified limit in skeleton form.
Shallow
uses skeleton form for any parts that match the pattern form.
  • Omitted sequences of elements are given as Skeleton objects, which print in the form k.
  • Depth and length can be specified as Infinity.
  • Shallow acts as a "wrapper", which affects printing, but not evaluation.
  • Trying to feed k as obtained from Shallow back as input to Mathematica in StandardForm will generate an error.
Shallow display of a list:
Shallow display of a nested list:
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=
Shortened outputs contain Skeleton objects:
Short displays with long expressions shortened from within:
Shallow shortens from the end:
New in 2 | Last modified in 3