Repeat a string: Difference between revisions
Content deleted Content added
→{{header|Perl 6}}: should work with any decent implementation |
Added Maple implementation |
||
Line 556:
Or use native string library function
<lang lua>string.rep(s,n)</lang>
=={{header|Maple}}==
<lang Maple>
> use StringTools in
> Repeat( "abc", 10 ); # repeat an arbitrary string
> Fill( "x", 20 ) # repeat a character
> end use;
"abcabcabcabcabcabcabcabcabcabc"
"xxxxxxxxxxxxxxxxxxxx"
</lang>
=={{header|Mathematica}}==
|