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

Documentation / Mathematica / Built-in Functions / Input and Output / Format Types /

Shallow

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

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

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

FilledSmallSquare Shallow[expr, depth, length, form] uses skeleton form for any parts which match the pattern form.

FilledSmallSquare Omitted sequences of elements are given as Skeleton objects, which print in the form k.

FilledSmallSquare In StandardForm, the characters used for this output are \[LeftSkeleton] and \[RightSkeleton].

FilledSmallSquare Depth and length can be specified as Infinity.

FilledSmallSquare Shallow[expr] is equivalent to Shallow[expr, 4, 10].

FilledSmallSquare Shallow acts as a "wrapper", which affects printing, but not evaluation.

FilledSmallSquare Trying to feed k as obtained from Shallow back as input to Mathematica in StandardForm will generate an error.

FilledSmallSquare See Section 2.9.5.

FilledSmallSquare See also: Short.

FilledSmallSquare New in Version 2; modified in 3.

Further Examples