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

wrap

Synopsis

Description

The inputs wid and sep are optional, and can be given in either order. The default for wid is printWidth, and the default for sep is null.
i1 : wrap(10,"abcdefghijklmnopqrstuvwxyz")

o1 = abcdefghij
     klmnopqrst
     uvwxyz
i2 : wrap(10,"-","abcdefghijklmnopqrstuvwxyz")

o2 = abcdefghij
     ----------
     klmnopqrst
     ----------
     uvwxyz

For the programmer

The object wrap is a compiled function.