next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: Wrap

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 , x , x , x , x , x , x , x , x , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  , x  ]
         0   1   2   3   4   5   6   7   8   9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29   30   31   32   33   34   35   36   37   38   39   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.