PadRight[list, n] makes a list of length n by padding list with zeros on the right.
PadRight[list, n, x] pads by repeating the element x.
PadRight[list, n, , , ... ] pads by cyclically repeating the elements .
PadRight[list, n, padding, m] leaves a margin of m elements of padding on the left.
PadRight[list, , , ... ] makes a nested list with length at level i.
PadRight[list, n, ... ] always returns a list of length n.
Example: PadRight[a,b,c, 7] .
With padding , , ... cyclic repetitions of the are effectively laid down and then the list is superimposed on top of them, with the first element of the list lying on an occurrence of .
Examples: PadRight[a,b, 7, x,y,z] .
PadRight[a,b, 7, x,y,z, 2] .
See additional notes for PadLeft.
See The Mathematica Book: Section 1.8.6.
See also: PadLeft, Join, Partition, ListCorrelate, RotateRight.