Anonymous user
Repeat a string: Difference between revisions
→{{header|Euphoria}}
Line 753:
object x = flatten(repeat("ha",5))
display(x)
/* note: repeat creates a sequence of ha's as shown below; flatten concatenates them.
{
"ha",
"ha",
"ha",
"ha",
"ha"
}
*/
</lang>
|