REPEAT (The GNU Fortran Compiler)

### 8.240 `REPEAT` — Repeated string concatenation ¶

Synopsis:

  `RESULT = REPEAT(STRING, NCOPIES)`

Description:

  Concatenates NCOPIES copies of a string.

Class:

  Transformational function

Arguments:

  STRING | Shall be scalar and of type `CHARACTER`.
  NCOPIES | Shall be scalar and of type `INTEGER`.

Return value:

  A new scalar of type `CHARACTER` built up from NCOPIES copies of STRING.

Example:

      program test_repeat
        write(*,*) repeat("x", 5)   ! "xxxxx"
      end program

Standard:

  Fortran 90 and later