Text.Regex.Do.Pad
pad :: Char -> Int -> String -> String Source #
pad String with Char to total length of Int
pad on left
>>> pad '-' 5 "abc"
>>>
pad '-' 5 "abc"
"--abc"
pad' :: Char -> Int -> String -> String Source #
pad on right
>>> pad' '-' 5 "abc"
pad' '-' 5 "abc"
"abc--"