Repeat a string: Difference between revisions

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>
 
Anonymous user