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.

Calls

interface~~repeat~~CallsGraph interface~repeat repeat proc~repeat_string repeat_string interface~repeat->proc~repeat_string proc~maybe maybe proc~repeat_string->proc~maybe

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)