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.


Contents


Module Procedures

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

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

Arguments

Type IntentOptional AttributesName
class(string_class), intent(in) :: string
integer, intent(in) :: ncopies

Return Value type(string_type)