Pads an array with a specified number to a given length.
The array
The desired length of the array
Optional
The number to pad with (default is 0)
Pads an array with a specified number to a given length.