next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc > The Macaulay2 language > strings and nets > pad

pad -- pad a string or net with spaces

Synopsis

Description

pad(s,n) pads the string or net s to length n with spaces on the right.

pad(n,s) pads the string or net s to length n with spaces on the left.

i1 : pad(6, "foo")

o1 =    foo
i2 : pad("foo", 6) | "bar"

o2 = foo   bar

Ways to use pad :

For the programmer

The object pad is a method function.