def
func:padl
padl(val, width, char: " ")
Pad string to the left. If size is less than width, then add the given char to the left to achieve the specified width.
Examples:
"3".padl(3, "0") >> "003" "123".padl(2, "0") >> "123"
Pad string to the left. If size is less than width, then add the given char to the left to achieve the specified width.
Examples:
"3".padl(3, "0") >> "003" "123".padl(2, "0") >> "123"