def
func:padr
padr(val, width, char: " ")
Pad string to the right. If size is less than width, then add the given char to the left to acheive the specified with.
Examples:
"xyz".padr(2, ".") >> "xyz" "xyz".padr(5, "-") >> "xyz--"
Pad string to the right. If size is less than width, then add the given char to the left to acheive the specified with.
Examples:
"xyz".padr(2, ".") >> "xyz" "xyz".padr(5, "-") >> "xyz--"