See Also:
rightJustifierauto padRight(R, E)(R r, E e, size_t n) if (
isInputRange!R &&
!isInfinite!R &&
!is(CommonType!(ElementType!R, E) == void))Extend the length of the input range r by padding out the end of the range with the element e. The element e must be of a common type with the element type of the range r as defined by CommonType. If n is less than the length of of r, then the contents of r are returned.
The range primitives that the resulting range provides depends whether or not r provides them. Except the functions back and popBack, which also require the range to have a length as well as back and popBack
r | an input range with a length |
e | element to pad the range with |
n | the length to pad to |
See Also:
rightJustifier