Repeat a string: Difference between revisions
Content added Content deleted
(PascalABC.NET) |
(Add ed example) |
||
Line 1,017: | Line 1,017: | ||
String funny = "ha" * 5; |
String funny = "ha" * 5; |
||
String stars = '*' * 80; |
String stars = '*' * 80; |
||
</syntaxhighlight> |
|||
=={{header|ed}}== |
|||
Port of [[#sed]]. Number of ampersands is the number of repetitions. |
|||
<syntaxhighlight lang="sed"> |
|||
# by Artyom Bologov |
|||
H |
|||
s/.*/&&&&&/ |
|||
p |
|||
Qp |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||