Macaulay2 » Documentation
Packages » Macaulay2Doc :: Wrap
next | previous | forward | backward | up | index | toc

Wrap -- a key for methods for wrapping printed output

Description

The default method for printing results of computations (stored in Thing#{Standard,Print}) searches for a method for wrapping the output by search in the class of the result (and its ancestors) for a function stored under the key Wrap. The preinstalled wrapping methods use wrap, they differ in their choice of separator between wrapped lines, or in whether to wrap at all.
i1 : QQ[x_0 .. x_40 ]

o1 = QQ[x ..x  ]
         0   40

o1 : PolynomialRing
i2 : concatenate(50:"abcd ")

o2 = abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
     abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
     abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd abcd
     abcd abcd abcd abcd abcd abcd abcd abcd

For the programmer

The object Wrap is a symbol.