This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.

• PadLeft always returns a list of length n, except in some special cases where padding is .
• With padding cyclic repetitions of the are effectively laid down and then the list is superimposed on top of them, with the last element of the list lying on an occurrence of . »
• PadLeft truncates the last m elements of list.
• A margin of Round[(n-Length[list])/2] effectively centers list.
• PadLeft effectively treats list as cyclic.
• PadLeft can be used to repeat an individual element that is itself a list.
• PadLeft repeats the sequence of as many times as fits in a list of length n.
• PadLeft creates a full array with dimensions even if list is ragged. »
• Negative specify to pad on the right.
• PadLeft effectively treats list as cyclic in every dimension.
• The object list need not have head List.
Pad with to make the list be of length 10:
Leave margin 2 on the right:
Pad to make a full array:
Pad with to make the list be of length 10:
 Out[1]=

 Out[1]=

 Out[1]=

Leave margin 2 on the right:
 Out[1]=

 Out[1]//TableForm=

Pad to make a full array:
 Out[1]//TableForm=
 Scope   (3)
Negative length specifications pad on the right:
Lay down repetitions of the padding, then superimpose the original array:
Use different margins for rows and columns:
Use a head other than List:
 Applications   (3)
Put a 1 at the center of a list of 0s:
Pad digit lists to be the same length:
Lay out an array of tiles: