Repeat a string: Difference between revisions
Content added Content deleted
Gregg.irwin (talk | contribs) No edit summary |
No edit summary |
||
Line 278: | Line 278: | ||
<lang go>fmt.Println(strings.Repeat("ha", 5)) # ==> "hahahahaha"</lang> |
<lang go>fmt.Println(strings.Repeat("ha", 5)) # ==> "hahahahaha"</lang> |
||
"Characters" are just strings of length one. |
"Characters" are just strings of length one. |
||
=={{header|Groovy}}== |
|||
<lang groovy> println 'ha' * 5</lang> |
|||
=={{header|Haskell}}== |
=={{header|Haskell}}== |