repeat Interface

public interface repeat

Repeats the character sequence hold by the string by the number of specified copies.

This method is elemental and returns a scalar character value.


Module Procedures

private elemental function repeat_string(string, ncopies) result(repeated_string)

Repeats the character sequence hold by the string by the number of specified copies.

Arguments

Type IntentOptional Attributes Name
type(string_type), intent(in) :: string
integer, intent(in) :: ncopies

Return Value type(string_type)