klyn.String.operator*
method
public native static operator*( readonly first as String, readonly count as ULong ) as String
Description

Repeats a string a given number of times.

Parameters
ParameterDescription
firstSource string.
countNumber of repetitions.
Returns

A new String with repeated content.

Throws
  • ValueException when the repetition count is negative.
Example
assert "ha" * 2u == "haha"
assert 2u * "ha" == "haha"