OxL Reference

method str.padEnd

Pads on the right with fill up to width characters.

Example:

oxl✓ checked in CI
fn main() io {
  print("[{"ab".padEnd(4)}]")
}
Output
[ab  ]
pub(api) fn padEnd(width: usize, fill: char = ' ') -> str

Since. 1.0.0-beta

Parameters

NameType
widthusize
fillchar = ' '

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/text.oxl:715

See also