Creates a string representing the given character repeated the specified number of times.
SDK
- Xcode 10.0+
Framework
- Swift Standard Library
Declaration
Parameters
repeatedValue
The character to repeat.
count
The number of times to repeat
repeated
in the resulting string.Value
Discussion
For example, use this initializer to create a string with ten "0"
characters in a row.