Repeats the character sequence hold by the string by the number of specified copies.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(string_type), | intent(in) | :: | string | |||
| integer, | intent(in) | :: | ncopies |
elemental function repeat_string(string, ncopies) result(repeated_string) type(string_type), intent(in) :: string integer, intent(in) :: ncopies type(string_type) :: repeated_string repeated_string = repeat(maybe(string), ncopies) end function repeat_string