Right package:formatting
Pad the right hand side of a string until it reaches k characters
wide, if necessary filling with character c.
Pad the right hand side of a string until it reaches k
characters wide, if necessary filling with character c.
Render the value in a Right with the given formatter, rendering a Left
as an empty string:
>>> format (righted text) (Left 16)
""
>>> format (righted text) (Right "bingo")
"bingo"
Fit in the given length, truncating on the right.