klyn.String.rpad
method
public rpad(width as Int, fill as Char = ' ') as String:
Description

Right pads this string to the target width.

Parameters
  • width Target width.
  • fill Fill character (default: space).
Returns

A new padded string, or this string when it is already wide enough.

Example
assert "Klyn".rpad(8, '.') == "Klyn...."