Signature: padEnd(s: string, targetLength: int, fill: string) -> Result<string, StringError>

Description: Pads s on the right with copies of fill to reach targetLength bytes.

Parameters

Returns: Result<string, StringError>

Example

padEnd("7", 3, ".")  // Success { value: "7.." }