public lpad(width as Int, fill as Char = ' ') as String:
Left pads this string to the target width.
| Parameter | Description |
|---|---|
width | Target width. |
fill | Fill character (default: space). |
A new padded string, or this string when it is already wide enough.
assert "42".lpad(5, '0') == "00042"