Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/1299-standardlibrary-mathematics-stat-mathsubfunctions-statmathreplicate.md
T
2026-06-23 21:47:51 +08:00

44 lines
872 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# MathReplicate
Generates a repeating sequence of values.
Version for working with real values:
```
bool  MathReplicate(
   const double&  array[],    // array of values
   const int      count,      // number of repetitions
   double&        result[]    // array of results
   )
```
Version for working with integer values:
```
bool  MathReplicate(
   const int&     array[],    // array of values
   const int      count,      // number of repetitions
   int&           result[]    // array of results
   )
```
Parameters
array[]
[in] Array for generating a sequence.
count
[in] The number of the array repetitions in the sequence.
result[]
[out] Array to output the sequence.
Return Value
Returns true if successful, otherwise false.