next | previous | forward | backward | up | top | index | toc | home

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