repeat


Description:

public static string repeat (string? s, int count)

Repeat the string the specified number of times.

Example:

    assert (Strings.repeat ("ab", 3) == "ababab");
assert (Strings.repeat ("x", 0) == "");

Parameters:

s

the string to repeat.

count

the number of times to repeat (must be >= 0).

Returns:

repeated string.